Moved misc/bug1048 as it is already correctly rejected by the compiler.

This commit is contained in:
acqn
2020-07-26 20:40:27 +08:00
committed by Oliver Schmidt
parent 7e243e0f2c
commit 35e1efc7f2
2 changed files with 0 additions and 6 deletions

15
test/err/bug1048.c Normal file
View 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;
}