Separated C preprocessor errors from other errors.
This commit is contained in:
8
test/ref/bug2312-preprocessor-error.c
Normal file
8
test/ref/bug2312-preprocessor-error.c
Normal file
@@ -0,0 +1,8 @@
|
||||
/* Bug #2312 - Error recovery from preprocessor errors at the end of a declaration */
|
||||
|
||||
typedef int A; /* ';' consumption triggers PP below */
|
||||
|
||||
#define /* PP error during ';' consumption */
|
||||
|
||||
A f(void); /* Should be OK */
|
||||
int A(void); /* Should be an error */
|
||||
Reference in New Issue
Block a user