Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/cpp/escape-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
/* Copyright (C) 2001 Free Software Foundation, Inc. */ /* { dg-do compile } */ /* { dg-options "-pedantic -std=c99" } */ /* This tests various diagnostics with -pedantic about escape sequences, for both the preprocessor and the compiler. Neil Booth, 22 May 2001. */ #if '\e' /* { dg-warning "non-ISO" "non-ISO \\e" } */ #endif #if L'\u00a0' /* { dg-bogus "unknown" "\\u is known in C99" } */ #endif void foo () { int c = '\E'; /* { dg-warning "non-ISO" "non-ISO \\E" } */ c = L'\u00a0'; /* { dg-bogus "unknown" "\\u is known in C99" } */ }