]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/c90-digraph-1.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / c90-digraph-1.c
diff --git a/gcc/testsuite/gcc.dg/c90-digraph-1.c b/gcc/testsuite/gcc.dg/c90-digraph-1.c
deleted file mode 100644 (file)
index 7226728..0000000
+++ /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 <jsm28@cam.ac.uk> */
-/* { dg-do run } */
-/* { dg-options "-std=iso9899:1990 -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, "1 %:%: 2") || strcmp (u, "<:"))
-    abort ();
-  else
-    return 0;
-}