view gcc/testsuite/gcc.dg/cpp/misspelled-directive-2.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "-fdiagnostics-show-caret" } */

#endfi /* { dg-error "invalid preprocessing directive #endfi; did you mean #endif?" } */

/* Verify that we offer fix-it hints.  */
/* { dg-begin-multiline-output "" }
 #endfi
  ^~~~~
  endif
  { dg-end-multiline-output "" } */

/* Test coverage for the case of an unrecognized directive where no suggestion
   is offered.  */

#this_does_not_match_anything /* { dg-error "invalid preprocessing directive #this_does_not_match_anything" } */
/* { dg-begin-multiline-output "" }
 #this_does_not_match_anything
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  { dg-end-multiline-output "" } */

int make_non_empty;