From 51e8f10cf6fd8c4c739d7504523c6c294f951200 Mon Sep 17 00:00:00 2001 From: Volker Reichelt Date: Wed, 19 Apr 2006 21:47:03 +0000 Subject: re PR c++/26789 (ICE on incomplete struct with -fmudflap) PR mudflap/26789 * testsuite/libmudflap.c++/error1-frag.cxx: New test. PR mudflap/26790 * testsuite/libmudflap.c++/error2-frag.cxx: New test. From-SVN: r113095 --- libmudflap/ChangeLog | 8 ++++++++ libmudflap/testsuite/libmudflap.c++/error1-frag.cxx | 5 +++++ libmudflap/testsuite/libmudflap.c++/error2-frag.cxx | 10 ++++++++++ 3 files changed, 23 insertions(+) create mode 100644 libmudflap/testsuite/libmudflap.c++/error1-frag.cxx create mode 100644 libmudflap/testsuite/libmudflap.c++/error2-frag.cxx (limited to 'libmudflap') diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index ca156e8..f15d117 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,11 @@ +2006-04-19 Volker Reichelt + + PR mudflap/26789 + * testsuite/libmudflap.c++/error1-frag.cxx: New test. + + PR mudflap/26790 + * testsuite/libmudflap.c++/error2-frag.cxx: New test. + 2006-04-10 Matthias Klose * testsuite/lib/libmudflap.exp (libmudflap-init): Recognize multilib diff --git a/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx b/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx new file mode 100644 index 0000000..8bfe853 --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx @@ -0,0 +1,5 @@ +// PR 26789 +// { dg-do compile } + +struct A; +A a; // { dg-error "incomplete" } diff --git a/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx b/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx new file mode 100644 index 0000000..0e89e11 --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c++/error2-frag.cxx @@ -0,0 +1,10 @@ +// PR 26790 +// { dg-do compile } + +struct A; + +A foo() // { dg-error "incomplete" } +{ + A a; // { dg-error "incomplete" } + return a; +} -- cgit v1.1