aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/if-div.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/if-div.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/if-div.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/if-div.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/if-div.c
new file mode 100644
index 000000000..4e4216812
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/if-div.c
@@ -0,0 +1,6 @@
+/* { dg-do preprocess } */
+
+/* Test that this preprocesses without error. */
+
+#if (-1)/2
+#endif