summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/20000628-1a.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/20000628-1a.h')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/20000628-1a.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/20000628-1a.h b/gcc/testsuite/gcc.dg/cpp/20000628-1a.h
index 1b6ff80f4d9..0fdc46d58a3 100644
--- a/gcc/testsuite/gcc.dg/cpp/20000628-1a.h
+++ b/gcc/testsuite/gcc.dg/cpp/20000628-1a.h
@@ -1,2 +1,15 @@
-/* Included from 20000628-1.h */
-extern int x;
+/* Included from 20000628-1.h. This header is supposed to be seen
+ exactly three times. */
+
+#if !defined A
+#define A
+int a;
+#elif !defined B
+#define B
+int b;
+#elif !defined C
+#define C
+int c;
+#else
+#error Included a fourth time
+#endif