aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/skipping.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/skipping.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/skipping.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/skipping.c b/gcc/testsuite/gcc.dg/cpp/skipping.c
index d87ea70..b8daa89 100644
--- a/gcc/testsuite/gcc.dg/cpp/skipping.c
+++ b/gcc/testsuite/gcc.dg/cpp/skipping.c
@@ -18,3 +18,8 @@ F( /* No diagnostic: don't even try to expand it. */
#else
#error Macros not expanded in #elif
#endif
+
+/* Check we don't warn about bad identifiers when skipping. */
+#if 0
+#define foo __VA_ARGS__ /* { dg-bogus "warned about identifier" } */
+#endif