summaryrefslogtreecommitdiff
path: root/libmudflap
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-01 23:08:05 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-01 23:08:05 +0000
commit65e47be24b4c0164407f73a1a6d6baa87946ec13 (patch)
tree348b58fc3ab2d8e3497c3ddef018b8abdf9cf8c6 /libmudflap
parent03506b9583184019a34be69f89533520de04d233 (diff)
downloadgcc-65e47be24b4c0164407f73a1a6d6baa87946ec13.tar.gz
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
Diffstat (limited to 'libmudflap')
-rw-r--r--libmudflap/ChangeLog5
-rw-r--r--libmudflap/testsuite/libmudflap.c++/pass60-frag.cxx13
2 files changed, 18 insertions, 0 deletions
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 <v.reichelt@netcologne.de>
+
+ PR libmudflap/26442
+ * testsuite/libmudflap.c++/pass60-frag.cxx: New test.
+
2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
* 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;
+}