diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-04-19 21:47:03 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-04-19 21:47:03 +0000 |
commit | 51e8f10cf6fd8c4c739d7504523c6c294f951200 (patch) | |
tree | 2ba29d1c49926d48a406867722299d657c203c80 /libmudflap/testsuite | |
parent | 91d876d91cc52aef0dafaf7bdbf295f483b0db4c (diff) | |
download | gcc-51e8f10cf6fd8c4c739d7504523c6c294f951200.tar.gz |
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
Diffstat (limited to 'libmudflap/testsuite')
-rw-r--r-- | libmudflap/testsuite/libmudflap.c++/error1-frag.cxx | 5 | ||||
-rw-r--r-- | libmudflap/testsuite/libmudflap.c++/error2-frag.cxx | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx b/libmudflap/testsuite/libmudflap.c++/error1-frag.cxx new file mode 100644 index 00000000000..8bfe8532830 --- /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 00000000000..0e89e117fbf --- /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; +} |