diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-31 12:43:29 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-31 12:43:29 +0000 |
commit | ff9038093a6f3f629bcd8115a714cadc3ea48ad1 (patch) | |
tree | 50fa0015aa03008a453a0de16c8f341444056875 /gcc/testsuite/gcc.dg/cpp/include2.c | |
parent | 47f11e8447f11764c88fec0d3963c5e1e7f4c078 (diff) | |
download | gcc-ff9038093a6f3f629bcd8115a714cadc3ea48ad1.tar.gz |
PR preprocessor/15638
gcc:
* c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
gcc/fortran:
* cpp.c (cb_cpp_error): Handle CPP_DL_FATAL.
gcc/testsuite:
* gcc.dg/cpp/missing-header-1.c: New test.
* gcc.dg/cpp/include2.c: Only test #include <>. Expect
"compilation terminated" message.
* gcc.dg/cpp/include2a.c: New test. Copy of include2.c but only
test #include "".
* gcc.dg/pch/counter-2.c, gcc.dg/pch/valid-1.c,
gcc.dg/pch/valid-2.c, gcc.dg/pch/warn-1.c: Expect "compilation
terminated" message.
libcpp:
* files.c (_cpp_find_file): Call open_file_failed after diagnosing
invalid PCH.
(open_file_failed): Make error for missing file fatal.
* include/cpplib.h (CPP_DL_FATAL): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145341 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/include2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/include2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/include2.c b/gcc/testsuite/gcc.dg/cpp/include2.c index cda818ed5af..67f1065ae8c 100644 --- a/gcc/testsuite/gcc.dg/cpp/include2.c +++ b/gcc/testsuite/gcc.dg/cpp/include2.c @@ -8,9 +8,8 @@ /* Source: Neil Booth, 4 Nov 2000. */ #include <silly\>> /* { dg-error "extra tokens" "" } */ -#include "silly\"" /* { dg-error "extra tokens" "" } */ /* These error is No such file or directory, just once. However, this message is locale-dependent, so don't test for it. */ /* { dg-error "silly" "" { target *-*-* } 10 } */ -/* { dg-error "missing" "" { target *-*-* } 11 } */ +/* { dg-message "terminated" "" { target *-*-* } 0 } */ |