view gcc/testsuite/gcc.dg/cpp/misspelled-directive-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +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;