OSDN Git Service

* Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / escape-2.c
1 /* Copyright (C) 2001 Free Software Foundation, Inc.  */
2
3 /* { dg-do compile } */
4 /* { dg-options "-pedantic -std=c99 -fno-show-column" } */
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 '\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 = '\u00a0';         /* { dg-bogus "unknown" "\\u is known in C99" } */
20 }