From cde59b72c9b49740d7f7822c649c2a28c77c187c Mon Sep 17 00:00:00 2001 From: tromey Date: Thu, 3 Jan 2008 17:58:26 +0000 Subject: 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 --- gcc/testsuite/gcc.dg/cpp/pr34602.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/cpp/pr34602.c (limited to 'gcc/testsuite/gcc.dg/cpp') 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 -- cgit v1.2.1