diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/cmdlne-P.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/cmdlne-P.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-P.c new file mode 100644 index 000000000..faadf9fbf --- /dev/null +++ b/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)" } } */ |