summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-03 17:58:26 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-03 17:58:26 +0000
commitcde59b72c9b49740d7f7822c649c2a28c77c187c (patch)
treec6771e54be61d92ae4c113b997d5d553a15c2866 /gcc/testsuite/gcc.dg/cpp
parente3a37aef272b028e7720f32f20f2cacab66ba1b1 (diff)
downloadgcc-cde59b72c9b49740d7f7822c649c2a28c77c187c.tar.gz
libcpp
PR preprocessor/34602. * directives.c (do_line): Don't try to spell EOF token. (do_linemarker): Add comment. gcc/testsuite PR preprocessor/34602: * gcc.dg/cpp/pr34602.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/pr34602.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/pr34602.c b/gcc/testsuite/gcc.dg/cpp/pr34602.c
new file mode 100644
index 00000000000..343c0917aee
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/pr34602.c
@@ -0,0 +1,6 @@
+/* PR preprocessor/34602 - no internal error trying to spell EOF. */
+/* { dg-do preprocess } */
+
+/* { dg-error "unexpected end" "" { target *-*-* } 6 } */
+
+#line