summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ipa/pr55264.C
blob: cf54d6ae2a96523c7bfe2af2312709dfc72bcf9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -fno-early-inlining -fno-weak"  } */

struct S
{
  S();
  virtual inline void foo ()
  {
    foo();
  }
};

void
B ()
{
  S().foo ();
}