Separated C preprocessor errors from other errors.

This commit is contained in:
acqn
2023-12-18 15:30:53 +08:00
parent 05aae60816
commit cd7c688dff
7 changed files with 91 additions and 30 deletions

View 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 */