aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/trad/funlike-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/trad/funlike-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/trad/funlike-2.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/funlike-2.c b/gcc/testsuite/gcc.dg/cpp/trad/funlike-2.c
deleted file mode 100644
index edcf2abf200..00000000000
--- a/gcc/testsuite/gcc.dg/cpp/trad/funlike-2.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Test that nested commas and parentheses in macro arguments are
- OK. */
-
-/* { dg-do preprocess } */
-
-#define f(x) x
-#define g(x, y) x y
-
-#if f((1)) != 1
-# error /* { dg-bogus "error" "nested parens 1" } */
-#endif
-
-#if f((1, 2)) != 2
-# error /* { dg-bogus "error" "nested comma 1" } */
-#endif
-
-#if g(, (1)) != 1
-# error /* { dg-bogus "error" "nested parens 2" } */
-#endif
-
-#if g((1, 2), + 3) != 5
-# error /* { dg-bogus "error" "nested comma 2" } */
-#endif