* g++.dg/opt/placeholder1.C: New test.
From-SVN: r83427
This commit is contained in:
parent
5c234cd7f4
commit
992d907d5c
@ -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.
|
||||
|
10
gcc/testsuite/g++.dg/opt/placeholder1.C
Normal file
10
gcc/testsuite/g++.dg/opt/placeholder1.C
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user