aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/integrated1.c11
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9e94bf6..a115d32 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-20 Neil Booth <neilb@earthling.net>
+
+ * gcc.dg/cpp/integrated1.c: New test.
+
2000-11-21 Jakub Jelinek <jakub@redhat.com>
* g++.old-deja/g++.other/inline17.C: New test.
diff --git a/gcc/testsuite/gcc.dg/cpp/integrated1.c b/gcc/testsuite/gcc.dg/cpp/integrated1.c
new file mode 100644
index 0000000..75b60ad
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/integrated1.c
@@ -0,0 +1,11 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc. */
+
+/* { dg-do compile } */
+/* { dg-options "-g -include mi1c.h" } */
+
+/* Tests that -g -include doesn't segfault. This used to happen
+ because cpp_start_read would be called before initialising debug
+ output for the integrated front ends.
+
+ Contributed by Neil Booth 15 Nov 2000. */
+