aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/unc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/unc2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/unc2.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/unc2.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/unc2.c
new file mode 100644
index 000000000..976d2b181
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/unc2.c
@@ -0,0 +1,12 @@
+/* Tests for unterminated conditionals: 2. */
+/* { dg-do preprocess } */
+
+#ifdef __sparc__ /* { dg-error "unterminated" "unterminated if-elif-elif..." } */
+sparc
+#elif defined __powerpc__
+ppc
+#elif defined __i386__
+i386
+#elif defined __vax__
+vax
+