aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/misspelled-directive-1.c
blob: f79670a17cbb56bd6d52afdf09729ff3f921bee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef SOME_GUARD /* { dg-error "unterminated" } */

#if 1
/* Typo here: "endfi" should have been "endif".  */
#endfi /* { dg-error "invalid preprocessing directive #endfi; did you mean #endif?" } */

int make_non_empty;

/* Another transposition typo:  */
#deifne FOO /* { dg-error "invalid preprocessing directive #deifne; did you mean #define?" } */ 

#endif /* #ifndef SOME_GUARD */