From: Jakub Jelinek Date: Fri, 15 Jul 2011 19:48:46 +0000 (+0200) Subject: re PR testsuite/49753 (FAIL: g++.dg/torture/pr49309.C) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b378a5669d19e462d66a0583702423c1a7ec7f6a;p=gcc.git re PR testsuite/49753 (FAIL: g++.dg/torture/pr49309.C) PR testsuite/49753 PR tree-optimization/49309 * testsuite/libmudflap.c++/pass68-frag.cxx: New test. * g++.dg/torture/pr49309.C: Remove. From-SVN: r176327 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a592c253d83..1d82350648b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-15 Jakub Jelinek + + PR testsuite/49753 + * g++.dg/torture/pr49309.C: Remove. + 2011-07-15 Bernd Schmidt * gcc.target/tic6x/weak-call.c: New test. diff --git a/gcc/testsuite/g++.dg/torture/pr49309.C b/gcc/testsuite/g++.dg/torture/pr49309.C deleted file mode 100644 index 620076380b4..00000000000 --- a/gcc/testsuite/g++.dg/torture/pr49309.C +++ /dev/null @@ -1,14 +0,0 @@ -/* { 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()); } - 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()); }