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