summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/c++98-pedantic.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp/c++98-pedantic.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp/c++98-pedantic.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp/c++98-pedantic.C b/gcc/testsuite/g++.dg/cpp/c++98-pedantic.C
new file mode 100644
index 000000000..61e13c5d1
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp/c++98-pedantic.C
@@ -0,0 +1,10 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+/* { dg-options "-std=c++98 -pedantic" } */
+
+/* This file is for testing the preprocessor in -std=c++98 -pedantic mode.
+ Neil Booth, 2 Dec 2000. */
+
+#if 1LL /* { dg-warning "long long" } */
+#endif