X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fc94-digraph-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fc94-digraph-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=26cc1be6cbba8343c1cbab9cb3b2b0ff5fb5df2e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/c94-digraph-1.c b/gcc/testsuite/gcc.dg/c94-digraph-1.c deleted file mode 100644 index 26cc1be6..00000000 --- a/gcc/testsuite/gcc.dg/c94-digraph-1.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Test for recognition of digraphs: should be recognised in C94 and C99 - mode, but not in C90 mode. Also check correct stringizing. -*/ -/* Origin: Joseph Myers */ -/* { dg-do run } */ -/* { dg-options "-std=iso9899:199409 -pedantic-errors" } */ - -#define str(x) xstr(x) -#define xstr(x) #x -#define foo(p, q) str(p %:%: q) - -extern void abort (void); -extern int strcmp (const char *, const char *); - -int -main (void) -{ - const char *t = foo (1, 2); - const char *u = str (<:); - if (strcmp (t, "12") || strcmp (u, "<:")) - abort (); - else - return 0; -}