summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-21 07:41:32 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-21 07:41:32 +0000
commit60f41fc506602eed2e09bec39c232edb8277a71e (patch)
tree43accc12c68136a0cebf98b20b50fbd743e53918
parent9a74eafd327ebc742ad68316b3797a7399a17800 (diff)
downloadppe42-gcc-60f41fc506602eed2e09bec39c232edb8277a71e.tar.gz
ppe42-gcc-60f41fc506602eed2e09bec39c232edb8277a71e.zip
New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37608 138bc75d-0d04-0410-961f-82ee72b054a4
-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 9e94bf63484..a115d327057 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 00000000000..75b60ad2278
--- /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. */
+
OpenPOWER on IntegriCloud