summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/placeholder1.C
blob: a1c984263daa0ece64a5b58966c6c42ae78528b2 (plain)
1
2
3
4
5
6
7
8
9
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);
}