Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / cpp / escape-2.c
blobe79fa91cbe9e558cca2c4fb114b291c2eee6593f
1 /* Copyright (C) 2001 Free Software Foundation, Inc. */
3 /* { dg-do compile } */
4 /* { dg-options "-pedantic -std=c99 -fno-show-column" } */
6 /* This tests various diagnostics with -pedantic about escape
7 sequences, for both the preprocessor and the compiler.
9 Neil Booth, 22 May 2001. */
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
16 void foo ()
18 int c = '\E'; /* { dg-warning "non-ISO" "non-ISO \\E" } */
19 c = L'\u00a0'; /* { dg-bogus "unknown" "\\u is known in C99" } */