| 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; |