mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
err test for struct with duplicate member
This commit is contained in:
parent
56c715af40
commit
84eafb7f9c
17
test/err/struct-duplicate-member.c
Normal file
17
test/err/struct-duplicate-member.c
Normal file
@ -0,0 +1,17 @@
|
||||
/* 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user