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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/20000628-1a.h b/gcc/testsuite/gcc.dg/cpp/20000628-1a.h
new file mode 100644
index 000000000..0fdc46d58
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/20000628-1a.h
@@ -0,0 +1,15 @@
+/* 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