aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c
new file mode 100644
index 000000000..faadf9fbf
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c
@@ -0,0 +1,11 @@
+/* Copyright (C) 2000, 2003 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+/* { dg-options "-P" } */
+
+/* Test that we don't stair-step output with -P. Source: Neil Booth,
+ 18 Dec 2000. */
+
+int x = 1;
+
+/* { dg-final { scan-file cmdlne-P.i "(^|\n)int x = 1;($|\n)" } } */