mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
73 lines
839 B
Plaintext
73 lines
839 B
Plaintext
// @warnings{no-unused}
|
|
module test;
|
|
|
|
struct Aa
|
|
{
|
|
int a;
|
|
int a; // #error: Duplicate member name 'a'
|
|
}
|
|
|
|
struct Bb
|
|
{
|
|
int a;
|
|
struct a // #error: Duplicate member name 'a'
|
|
{
|
|
int b;
|
|
}
|
|
}
|
|
|
|
union Cc
|
|
{
|
|
int a;
|
|
int a; // #error: Duplicate member name 'a'
|
|
}
|
|
|
|
union Cc2
|
|
{
|
|
int a;
|
|
|
|
struct b
|
|
{
|
|
int c;
|
|
int c; // #error: Duplicate member name 'c'
|
|
}
|
|
}
|
|
struct Dd
|
|
{
|
|
int b;
|
|
int a;
|
|
struct
|
|
{
|
|
union
|
|
{
|
|
short a; // #error: Duplicate member name 'a'
|
|
}
|
|
}
|
|
}
|
|
|
|
union Ee
|
|
{
|
|
int a;
|
|
struct
|
|
{
|
|
short a; // #error: Duplicate member name 'a'
|
|
}
|
|
}
|
|
|
|
struct Ff
|
|
{
|
|
struct
|
|
{
|
|
int a;
|
|
}
|
|
struct b
|
|
{
|
|
int a;
|
|
}
|
|
union
|
|
{
|
|
int a; // #error: Duplicate member name 'a'
|
|
}
|
|
}
|
|
|