aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/trad/literals-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/trad/literals-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/trad/literals-1.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/literals-1.c b/gcc/testsuite/gcc.dg/cpp/trad/literals-1.c
deleted file mode 100644
index 7fde0d5422e..00000000000
--- a/gcc/testsuite/gcc.dg/cpp/trad/literals-1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Test that (what looks like) comments are not recognised in literals
- and that quotes within quotes do not confused the preprocessor. */
-
-/* { dg-do run } */
-
-extern void abort (void);
-
-int main ()
-{
- const char *str1 = "/*";
- const char *str2 = "'";
-
- if (str1[0] != '/' || str1[1] != '*' || str1[2] != '\0')
- abort ();
-
- if (str2[0] != '\'' || str2[1] != '\0')
- abort ();
-
-#if '"' != '\"'
-# error /* { dg-bogus "error" "double quote in charconst" } */
-#endif
-
-#if !'\''
-# error quote /* { dg-bogus "quote" "quote in charconst" } */
-#endif
-
- return 0;
-}