summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr46154.C
blob: 424b1fad83b4a94964b01d467ee785857e830fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-fipa-cp-clone" } */

struct S
{
  virtual int foo ()
    {
      return foo () == 0;
    }
  virtual void baz ();
};

void A ()
{
  S s;
  s.foo ();
}