1  /* Copyright (C) 2001 Free Software Foundation, Inc.  */
       2  
       3  /* { dg-do compile } */
       4  /* { dg-options "-pedantic -std=c99" } */
       5  
       6  /* This tests various diagnostics with -pedantic about escape
       7     sequences, for both the preprocessor and the compiler.
       8  
       9     Neil Booth, 22 May 2001.  */
      10  
      11  #if '\e'		/* { dg-warning "non-ISO" "non-ISO \\e" } */
      12  #endif
      13  #if L'\u00a0'		/* { dg-bogus "unknown" "\\u is known in C99" } */
      14  #endif
      15  
      16  void foo ()
      17  {
      18    int c = '\E';		/* { dg-warning "non-ISO" "non-ISO \\E" } */
      19    c = L'\u00a0';	/* { dg-bogus "unknown" "\\u is known in C99" } */
      20  }