summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ipa/devirt-31.C
blob: 7d12f79810cf31ab1810e270bf2320dd9366b869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-options "-O3 -fdump-tree-ssa" }
inline void t()
{
  struct A {virtual void q() {}};
  static struct A *a;
  if (!a)
    a = new(A);
  a->q();
};
void
m()
{
  t();
}
// { dg-final { scan-tree-dump-not "OBJ_TYPE_REF" "ssa" } }