--- /dev/null
+ERROR: 0:1: '#endif' : mismatched statements
+ERROR: 0:2: '#endif' : mismatched statements
+ERROR: 0:3: '#endif' : mismatched statements
+ERROR: 0:4: '#endif' : mismatched statements
+ERROR: 0:5: '#endif' : mismatched statements
+ERROR: 0:6: '#endif' : mismatched statements
+ERROR: 0:7: '#endif' : mismatched statements
+ERROR: 0:10: 'preprocessor evaluation' : bad expression
+ERROR: 0:11: '' : missing #endif
+ERROR: 9 compilation errors. No code generated.
+
+
token = CPPelse(0, ppToken);
break;
case PpAtomEndif:
- elseSeen[elsetracker] = false;
- --elsetracker;
if (! ifdepth)
parseContext.ppError(ppToken->loc, "mismatched statements", "#endif", "");
- else
+ else {
+ elseSeen[elsetracker] = false;
+ --elsetracker;
--ifdepth;
+ }
token = extraTokenCheck(PpAtomEndif, ppToken, scanToken(ppToken));
break;
case PpAtomIf: