aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-01-26 11:08:00 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-01-26 11:08:00 +0100
commit18f5df94df9a8abcbf9410c79c180de6f7b85f51 (patch)
tree9c09a82425d5c1d2c2859f73f4ca6281c4a446b8 /gcc
parent2f6a6b28ebec12d88256c90a34288f33cbfd607e (diff)
downloadgcc-18f5df94df9a8abcbf9410c79c180de6f7b85f51.zip
gcc-18f5df94df9a8abcbf9410c79c180de6f7b85f51.tar.gz
gcc-18f5df94df9a8abcbf9410c79c180de6f7b85f51.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/c-c++-common/cpp/pr88974.c6
2 files changed, 11 insertions, 0 deletions
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 <jakub@redhat.com>
+
+ PR preprocessor/88974
+ * c-c++-common/cpp/pr88974.c: New test.
+
2019-01-25 Paolo Carlini <paolo.carlini@oracle.com>
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 (<pr88974.h)
+/* { dg-error "missing terminating > character" "" { target *-*-* } .-1 } */
+#endif