From 65e47be24b4c0164407f73a1a6d6baa87946ec13 Mon Sep 17 00:00:00 2001 From: reichelt Date: Tue, 1 Jan 2008 23:08:05 +0000 Subject: PR libmudflap/26442 * tree-mudflap.c (mx_register_decls): Guard warning by !DECL_ARTIFICIAL check. * testsuite/libmudflap.c++/pass60-frag.cxx: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131249 138bc75d-0d04-0410-961f-82ee72b054a4 --- libmudflap/ChangeLog | 5 +++++ libmudflap/testsuite/libmudflap.c++/pass60-frag.cxx | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 libmudflap/testsuite/libmudflap.c++/pass60-frag.cxx (limited to 'libmudflap') diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index be52732ee76..081f14c2ed5 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,8 @@ +2008-01-01 Volker Reichelt + + PR libmudflap/26442 + * testsuite/libmudflap.c++/pass60-frag.cxx: New test. + 2007-10-15 Maciej W. Rozycki * configure: Regenerate following changes to ../config/tls.m4. diff --git a/libmudflap/testsuite/libmudflap.c++/pass60-frag.cxx b/libmudflap/testsuite/libmudflap.c++/pass60-frag.cxx new file mode 100644 index 00000000000..35989d122b1 --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c++/pass60-frag.cxx @@ -0,0 +1,13 @@ +// PR 26442 + +struct A +{ + A(); +}; + +int main() +{ + if (0) + A(); + return 0; +} -- cgit v1.2.1