From bed0dbb7d83f96d3e1904bb7dbbb8724ff9407d7 Mon Sep 17 00:00:00 2001 From: jakub Date: Fri, 15 Jul 2011 19:48:46 +0000 Subject: PR testsuite/49753 PR tree-optimization/49309 * testsuite/libmudflap.c++/pass68-frag.cxx: New test. * g++.dg/torture/pr49309.C: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176327 138bc75d-0d04-0410-961f-82ee72b054a4 --- libmudflap/ChangeLog | 6 ++++++ libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx (limited to 'libmudflap') diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index f981b1b169f..ed5ecd18170 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,9 @@ +2011-07-15 Jakub Jelinek + + PR testsuite/49753 + PR tree-optimization/49309 + * testsuite/libmudflap.c++/pass68-frag.cxx: New test. + 2011-07-13 Rainer Orth * configure.ac: Don't create pth. diff --git a/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx b/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx new file mode 100644 index 00000000000..ab8cd97f2a2 --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c++/pass68-frag.cxx @@ -0,0 +1,15 @@ +// PR tree-optimization/49309 +// { dg-do compile } +// { dg-options "-fmudflap" } + +struct A +{ + int i; + + A(); + A(const A&); +}; + +inline void foo(A a) { a = A(); } + +void bar() { foo(A()); } -- cgit v1.2.1