aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNeil Booth <neil@gcc.gnu.org>2001-11-25 16:48:40 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-11-25 16:48:40 +0000
commitcb33a143b96c9a6723c9da3afc3f87218fce4a1f (patch)
tree101588d85718455f0b4d2546fb9819336410805f /gcc/testsuite
parent4f81fba13e2c6e8a69618d9a27ceae482ebd954f (diff)
downloadgcc-cb33a143b96c9a6723c9da3afc3f87218fce4a1f.zip
gcc-cb33a143b96c9a6723c9da3afc3f87218fce4a1f.tar.gz
gcc-cb33a143b96c9a6723c9da3afc3f87218fce4a1f.tar.bz2
* gcc.dg/cpp/fpreprocessed.c: New test.
From-SVN: r47325
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/fpreprocessed.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/fpreprocessed.c b/gcc/testsuite/gcc.dg/cpp/fpreprocessed.c
new file mode 100644
index 0000000..53d298f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/fpreprocessed.c
@@ -0,0 +1,10 @@
+/* Copyright (C) 2001 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+/* { dg-options -fpreprocessed } */
+
+/* Source: Jason Merrill, 19 Nov 2001. We'd try and back up a token
+ and move to a non-existent token run with -fpreprocessed on a file
+ without a leading # line. */
+
+foo