mirror of
https://github.com/cc65/cc65.git
synced 2024-09-08 16:54:52 +00:00
18 lines
260 B
C
18 lines
260 B
C
|
/* Ensure that a duplicate member in a struct produces an error.
|
||
|
** https://github.com/cc65/cc65/issues/2015
|
||
|
*/
|
||
|
|
||
|
struct bads {
|
||
|
int a;
|
||
|
int a; /* this is an error */
|
||
|
};
|
||
|
|
||
|
union badu {
|
||
|
int a, a; /* also an error */
|
||
|
};
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|