X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2Fescape.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2Fescape.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=44ad4c1d2bf2fd1069dafc5dbde2fdefbe3da919;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/cpp/escape.c b/gcc/testsuite/gcc.dg/cpp/escape.c deleted file mode 100644 index 44ad4c1d..00000000 --- a/gcc/testsuite/gcc.dg/cpp/escape.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright (C) 2001 Free Software Foundation, Inc. */ - -/* { dg-do compile } */ -/* { dg-options "-Wtraditional -std=c89 -fno-show-column" } */ - -/* This tests various diagnostics with -Wtraditioanl about escape - sequences, for both the preprocessor and the compiler. - - Neil Booth, 22 May 2001. */ - -#if '\a' /* { dg-warning "traditional" "traditional bell" } */ -#endif -#if '\x1a' != 26 /* { dg-warning "traditional" "traditional hex" } */ - #error bad hex /* { dg-bogus "bad" "bad hexadecimal evaluation" } */ -#endif -#if '\u' /* { dg-warning "unknown" "\u is unknown in C89" } */ -#endif - -void foo () -{ - int c = '\a'; /* { dg-warning "traditional" "traditional bell" } */ - - c = '\xa1'; /* { dg-warning "traditional" "traditional hex" } */ - c = '\u'; /* { dg-warning "unknown" "\u is unknown in C89" } */ -}