mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
added testcase for issue #1048
This commit is contained in:
parent
a43cac580e
commit
693e3a7109
15
test/misc/bug1048.c
Normal file
15
test/misc/bug1048.c
Normal file
@ -0,0 +1,15 @@
|
||||
/* bug #1048: The following code has two errors: a redeclared enum type and an
|
||||
undeclared enum type: */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
// this should NOT compile - but with cc65 it does
|
||||
enum e { x };
|
||||
enum e { y };
|
||||
|
||||
int f() { return sizeof(enum undeclared); }
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user