Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/misspelled-directive-2.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-options "-fdiagnostics-show-caret" } */ |
2 | |
3 #endfi /* { dg-error "invalid preprocessing directive #endfi; did you mean #endif?" } */ | |
4 | |
5 /* Verify that we offer fix-it hints. */ | |
6 /* { dg-begin-multiline-output "" } | |
7 #endfi | |
8 ^~~~~ | |
9 endif | |
10 { dg-end-multiline-output "" } */ | |
11 | |
12 /* Test coverage for the case of an unrecognized directive where no suggestion | |
13 is offered. */ | |
14 | |
15 #this_does_not_match_anything /* { dg-error "invalid preprocessing directive #this_does_not_match_anything" } */ | |
16 /* { dg-begin-multiline-output "" } | |
17 #this_does_not_match_anything | |
18 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
19 { dg-end-multiline-output "" } */ | |
20 | |
21 int make_non_empty; |