move test to test/ref

This commit is contained in:
Bob Andrews
2022-11-11 21:22:20 +01:00
parent 9c48c0ab8a
commit ace39197e5
4 changed files with 2 additions and 6 deletions

View File

@@ -52,7 +52,8 @@ CUSTOMSOURCES = \
# list of sources that produce a compiler error. a .cref files containing the
# exact error output is required
ERRORSOURCES = \
custom-reference-error.c
custom-reference-error.c \
bug1889-missing-identifier.c
SOURCES := $(filter-out $(CUSTOMSOURCES) $(ERRORSOURCES),$(wildcard *.c))

View File

@@ -0,0 +1,9 @@
/* bug 1889 - endless errors due to failure in recovery from missing identifier */
int enum { a } x;
inline enum { b };
int main(void)
{
return 0;
}

View File

@@ -0,0 +1,3 @@
bug1889-missing-identifier.c:3: Error: Identifier expected
bug1889-missing-identifier.c:4: Error: Identifier expected
bug1889-missing-identifier.c:4: Warning: Implicit 'int' is an obsolete feature