aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/pr60912.C
blob: ad51ba72570ea427ead70405b594c093eeb8fc5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do run }
// { dg-options "-O -fno-inline -fipa-pta" }

struct IFoo
{
  virtual void Foo () = 0;
};

struct Bar:IFoo
{
  void Foo () {}
};

int main ()
{
  (new Bar ())->Foo ();
  return 0;
}