From: Richard Sandiford Date: Mon, 21 Jun 2004 06:32:29 +0000 (+0000) Subject: * g++.dg/opt/placeholder1.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=992d907d5caac2269f88788826824df7914fc3ef;p=gcc.git * g++.dg/opt/placeholder1.C: New test. From-SVN: r83427 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 78829ebe0d0..de97d53f6b8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-06-21 Richard Sandiford + + * g++.dg/opt/placeholder1.C: New test. + 2004-06-20 Eric Botcazou * gcc.dg/compat/struct-complex-1_x.c: Add dummy symbol. diff --git a/gcc/testsuite/g++.dg/opt/placeholder1.C b/gcc/testsuite/g++.dg/opt/placeholder1.C new file mode 100644 index 00000000000..a1c984263da --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/placeholder1.C @@ -0,0 +1,10 @@ +// PR rtl-optimization/15159 +// { dg-options "-O2" } +struct S { S (); }; +struct P { P (S *); }; +void foo (const P &); +void bar () +{ + P p = new S; + foo (p); +}