gcc/testsuite/gcc.dg/cpp/misspelled-directive-1.c
raw| 1 | #ifndef SOME_GUARD /* { dg-error "-:unterminated" } */ |
| 2 | |
| 3 | #if 1 |
| 4 | /* Typo here: "endfi" should have been "endif". */ |
| 5 | #endfi /* { dg-error "invalid preprocessing directive #endfi; did you mean #endif?" } */ |
| 6 | |
| 7 | int make_non_empty; |
| 8 | |
| 9 | /* Another transposition typo: */ |
| 10 | #deifne FOO /* { dg-error "invalid preprocessing directive #deifne; did you mean #define?" } */ |
| 11 | |
| 12 | #endif /* #ifndef SOME_GUARD */ |