diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/opt/placeholder1.C | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 78829eb..de97d53 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-06-21 Richard Sandiford <rsandifo@redhat.com> + + * g++.dg/opt/placeholder1.C: New test. + 2004-06-20 Eric Botcazou <ebotcazou@libertysurf.fr> * 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 0000000..a1c9842 --- /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); +} |