From 18f5df94df9a8abcbf9410c79c180de6f7b85f51 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 26 Jan 2019 11:08:00 +0100 Subject: re PR preprocessor/88974 (ICE: Segmentation fault (in linemap_resolve_location)) PR preprocessor/88974 * directives.c (SEEN_EOL): Move macro to ... * internal.h (SEEN_EOL): ... here. * expr.c (parse_has_include): Don't cpp_get_token if SEEN_EOL (). * c-c++-common/cpp/pr88974.c: New test. From-SVN: r268285 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/c-c++-common/cpp/pr88974.c | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/c-c++-common/cpp/pr88974.c (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 84e195c..a1805f8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-01-26 Jakub Jelinek + + PR preprocessor/88974 + * c-c++-common/cpp/pr88974.c: New test. + 2019-01-25 Paolo Carlini PR c++/88969 diff --git a/gcc/testsuite/c-c++-common/cpp/pr88974.c b/gcc/testsuite/c-c++-common/cpp/pr88974.c new file mode 100644 index 0000000..c375d83 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pr88974.c @@ -0,0 +1,6 @@ +/* PR preprocessor/88974 */ +/* { dg-do preprocess } */ + +#if __has_include ( character" "" { target *-*-* } .-1 } */ +#endif -- cgit v1.1