X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2F20000625-2.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fcpp%2F20000625-2.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=72e2604faff3d8f9539c0a8bfe255717aab0aed9;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/cpp/20000625-2.c b/gcc/testsuite/gcc.dg/cpp/20000625-2.c deleted file mode 100644 index 72e2604f..00000000 --- a/gcc/testsuite/gcc.dg/cpp/20000625-2.c +++ /dev/null @@ -1,30 +0,0 @@ -/* More paste corner cases from glibc. */ -/* { dg-do run } */ - -#include -#include - -#define symbol_version(name, version) name##@##version -#define str(x) xstr(x) -#define xstr(x) #x - -/* This testcase is bogus, as it testing undefined behaviour. We can - get the behaviour GLIBC desires by removing the space before - GCLIB_2.0 in this line. */ -const char a[] = str(symbol_version(getrlimit,GLIBC_2.0)); -/* { dg-warning "valid preprocessing token" "" { target *-*-* } 14 } */ -const char b[] = str(getrlimit@GLIBC_2.0); -const char c[] = "getrlimit@GLIBC_2.0"; - -int -main(void) -{ - if(strcmp(a, b)) - abort(); - if(strcmp(b, c)) - abort(); - if(strcmp(c, a)) - abort(); - - return 0; -}