summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog17
-rw-r--r--gcc/testsuite/gcc.dg/c99-predef-1.c63
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-10.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-11.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-12.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-13.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-14.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-15.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-16.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-17.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-18.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-19.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-20.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-21.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-22.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-3.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-4.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-5.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-6.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-7.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-8.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-dU-9.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/mi5.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/multiline.c2
26 files changed, 107 insertions, 27 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7c7ce7c0c4a..f305e7b07e5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,20 @@
+2012-10-23 Joseph Myers <joseph@codesourcery.com>
+
+ * gcc.dg/c99-predef-1.c: New test.
+ * gcc.dg/cpp/cmdlne-dU-1.c, gcc.dg/cpp/cmdlne-dU-2.c,
+ gcc.dg/cpp/cmdlne-dU-3.c, gcc.dg/cpp/cmdlne-dU-4.c,
+ gcc.dg/cpp/cmdlne-dU-5.c, gcc.dg/cpp/cmdlne-dU-6.c,
+ gcc.dg/cpp/cmdlne-dU-7.c, gcc.dg/cpp/cmdlne-dU-8.c,
+ gcc.dg/cpp/cmdlne-dU-9.c, gcc.dg/cpp/cmdlne-dU-10.c,
+ gcc.dg/cpp/cmdlne-dU-11.c, gcc.dg/cpp/cmdlne-dU-12.c,
+ gcc.dg/cpp/cmdlne-dU-13.c, gcc.dg/cpp/cmdlne-dU-14.c,
+ gcc.dg/cpp/cmdlne-dU-15.c, gcc.dg/cpp/cmdlne-dU-16.c,
+ gcc.dg/cpp/cmdlne-dU-17.c, gcc.dg/cpp/cmdlne-dU-18.c,
+ gcc.dg/cpp/cmdlne-dU-19.c, gcc.dg/cpp/cmdlne-dU-20.c,
+ gcc.dg/cpp/cmdlne-dU-21.c, gcc.dg/cpp/cmdlne-dU-22.c,
+ gcc.dg/cpp/mi5.c, gcc.dg/cpp/multiline.c: Add -nostdinc to
+ dg-options.
+
2012-10-23 Marc Glisse <marc.glisse@inria.fr>
* gcc.dg/tree-ssa/foldconst-6.c: New testcase.
diff --git a/gcc/testsuite/gcc.dg/c99-predef-1.c b/gcc/testsuite/gcc.dg/c99-predef-1.c
new file mode 100644
index 00000000000..b907764579e
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c99-predef-1.c
@@ -0,0 +1,63 @@
+/* Verify that predefined macros for properties of the compiler and
+ library together are the same before and after system headers are
+ included. This is broken with older glibc versions. */
+/* { dg-do compile } */
+/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
+
+#ifdef __STDC_IEC_559__
+#define IEC_559_DEFINED_BEFORE 1
+#else
+#define IEC_559_DEFINED_BEFORE 0
+#endif
+
+#ifdef __STDC_IEC_559_COMPLEX__
+#define IEC_559_COMPLEX_DEFINED_BEFORE 1
+#else
+#define IEC_559_COMPLEX_DEFINED_BEFORE 0
+#endif
+
+#ifdef __STDC_ISO_10646__
+#define ISO_10646_DEFINED_BEFORE 1
+#else
+#define ISO_10646_DEFINED_BEFORE 0
+#endif
+
+#include <stdio.h>
+
+#ifdef __STDC_IEC_559__
+#define IEC_559_DEFINED_AFTER 1
+#else
+#define IEC_559_DEFINED_AFTER 0
+#endif
+
+#ifdef __STDC_IEC_559_COMPLEX__
+#define IEC_559_COMPLEX_DEFINED_AFTER 1
+#else
+#define IEC_559_COMPLEX_DEFINED_AFTER 0
+#endif
+
+#ifdef __STDC_ISO_10646__
+#define ISO_10646_DEFINED_AFTER 1
+#else
+#define ISO_10646_DEFINED_AFTER 0
+#endif
+
+#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 16))
+#define BROKEN
+#endif
+
+#ifndef BROKEN
+
+#if IEC_559_DEFINED_BEFORE != IEC_559_DEFINED_AFTER
+#error "__STDC_IEC_559__ definition inconsistency"
+#endif
+
+#if IEC_559_COMPLEX_DEFINED_BEFORE != IEC_559_COMPLEX_DEFINED_AFTER
+#error "__STDC_IEC_559_COMPLEX__ definition inconsistency"
+#endif
+
+#if ISO_10646_DEFINED_BEFORE != ISO_10646_DEFINED_AFTER
+#error "__STDC_ISO_10646__ definition inconsistency"
+#endif
+
+#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-1.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-1.c
index ce3f5b72128..129e48bf8e6 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-1.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-1.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-1.i "^\n*#undef A\n*$" } } */
#ifdef A
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-10.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-10.c
index dd1474ad0eb..31398a7625b 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-10.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-10.c
@@ -1,7 +1,7 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-10.i "^\n*C\n+#define B C\n+#define A B\n*$" } } */
/* This file deliberately has no final newline. */
#define A B
#define B C
-A \ No newline at end of file
+A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-11.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-11.c
index c9cc5934631..1c0128bb431 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-11.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-11.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-11.i "^\n*\n*$" } } */
#define A B
#if 0
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-12.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-12.c
index bf765fbf0eb..54620a57ee2 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-12.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-12.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-12.i "^\n*#define A 1\n*$" } } */
#define A 1
#if A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-13.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-13.c
index 3ab08d5d59c..45ce532b206 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-13.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-13.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-13.i "^\n*#undef A\n*$" } } */
#ifdef A
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-14.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-14.c
index 5d36f1acb09..4fe96a4d770 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-14.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-14.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-14.i "^\n*B\n+#define A B\n+B\n*$" } } */
#define A B
A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-15.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-15.c
index a6a96182678..2df0b62f9be 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-15.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-15.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-15.i "^\n*\n*$" } } */
#if A
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-16.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-16.c
index 463c0b9e707..41a9a9110bf 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-16.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-16.c
@@ -1,6 +1,6 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
-/* { dg-options "-P -dU -std=c89" { target *-*-solaris2.* } } */
+/* { dg-options "-nostdinc -P -dU" } */
+/* { dg-options "-nostdinc -P -dU -std=c89" { target *-*-solaris2.* } } */
/* { dg-final { scan-file cmdlne-dU-16.i "^\n*#define __STDC__ 1\n*$" } } */
#ifdef __STDC__
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-17.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-17.c
index 2ae9d273a9b..fd608e1d4d6 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-17.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-17.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
-/* { dg-options "-P -dU -std=c89" { target *-*-solaris2.* } } */
+/* { dg-options "-nostdinc -P -dU" } */
+/* { dg-options "-nostdinc -P -dU -std=c89" { target *-*-solaris2.* } } */
/* { dg-final { scan-file cmdlne-dU-17.i "^\n*1\n+#define __STDC__ 1\n*$" } } */
__STDC__
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-18.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-18.c
index 0b2c54307ee..97104845d08 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-18.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-18.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-18.i "^\n*x 1 y\n+#define A 1\n*$" } } */
#define A 1
x A y
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-19.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-19.c
index 50edfc2b959..c6c3af3562c 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-19.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-19.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-19.i "^\n*B\n+#define A B\n+#undef A\n*$" } } */
#define A B
A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-2.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-2.c
index e4754630405..dffdd2ba909 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-2.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-2.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-2.i "^\n*#define A *\n*$" } } */
#define A
#ifdef A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-20.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-20.c
index 4845b51e77b..065b807ef61 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-20.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-20.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-20.i "^\n*A B\n*$" } } */
#define A(x) x
A B
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-21.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-21.c
index c17a0435ed7..1fefe542cbd 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-21.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-21.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-21.i "^\n*hello There\n+#define ASTRING There\n+#define MACROARGS\\(A\\) A\n+#undef BSTRING\n*$" } } */
#define ASTRING There
#define MACROARGS(A) A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-22.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-22.c
index 383a29f85e8..fe100ceb023 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-22.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-22.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-22.i "^\n*#undef AAA\n+AAA is undefined\n+#undef BBB\n+BBB is undefined\n+#undef CCC\n+CCC is undefined\n*$" } } */
#ifndef AAA
AAA is undefined
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-3.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-3.c
index 26c6ec1de26..a26fc9881de 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-3.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-3.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-3.i "^\n*#define A B\n*$" } } */
#define A B
#ifndef A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-4.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-4.c
index 9c57ffe7c74..aa3d853a09a 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-4.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-4.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-4.i "^\n*#undef A\n*$" } } */
#if defined(A)
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-5.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-5.c
index 01880b77b5f..bfae850de30 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-5.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-5.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-5.i "^\n*#undef A\n*$" } } */
#ifdef A
#ifdef B
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-6.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-6.c
index edf6b444518..e2c801df307 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-6.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-6.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-6.i "^\n*#undef A\n+#define A *\n*$" } } */
#ifdef A
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-7.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-7.c
index 43a66341d0c..03091784483 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-7.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-7.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-7.i "^\n*B\n+#define A B\n+C\n+#define A C\n*$" } } */
#define A B
A
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-8.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-8.c
index d5984a31494..da97fabed5b 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-8.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-8.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-8.i "^\n*B D\n+#define A\\(x\\) B x\n+#define C D\n*$" } } */
#define A(x) B x
#define C D
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-9.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-9.c
index ac8b92114ac..bd0f0edfecc 100644
--- a/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-9.c
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-9.c
@@ -1,5 +1,5 @@
/* { dg-do preprocess } */
-/* { dg-options "-P -dU" } */
+/* { dg-options "-nostdinc -P -dU" } */
/* { dg-final { scan-file cmdlne-dU-9.i "^\n*C\n+#define B C\n+#define A B\n*$" } } */
#define A B
#define B C
diff --git a/gcc/testsuite/gcc.dg/cpp/mi5.c b/gcc/testsuite/gcc.dg/cpp/mi5.c
index 327c4762191..09f4f5c0d46 100644
--- a/gcc/testsuite/gcc.dg/cpp/mi5.c
+++ b/gcc/testsuite/gcc.dg/cpp/mi5.c
@@ -6,7 +6,7 @@
otherwise it will not be interpreted all in one unit. */
/* { dg-do preprocess }
- { dg-options "-H -C" }
+ { dg-options "-nostdinc -H -C" }
{ dg-message "mi1c\.h" "redundant include check with -C" { target *-*-* } 0 } */
#include "mi1c.h"
diff --git a/gcc/testsuite/gcc.dg/cpp/multiline.c b/gcc/testsuite/gcc.dg/cpp/multiline.c
index 38798bdfaaf..970cf2faa0c 100644
--- a/gcc/testsuite/gcc.dg/cpp/multiline.c
+++ b/gcc/testsuite/gcc.dg/cpp/multiline.c
@@ -1,6 +1,6 @@
/* Copyright (C) 2000, 2003 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
-/* { dg-options "-C" } */
+/* { dg-options "-nostdinc -C" } */
/* Test that multi-line tokens are recognized by cpp0 as being
multiline . Source: Neil Booth, 17 Dec 2000. */
/* Line 1