summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/pedantic-errors.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp/pedantic-errors.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp/pedantic-errors.C5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp/pedantic-errors.C b/gcc/testsuite/g++.dg/cpp/pedantic-errors.C
new file mode 100644
index 000000000..0c6045af8
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp/pedantic-errors.C
@@ -0,0 +1,5 @@
+/* { dg-do preprocess } */
+/* { dg-options "-std=c++98 -pedantic-errors" } */
+
+#if 1
+#endif 1 /* { dg-error "extra tokens at end of #endif directive" } */