Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr46154.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fipa-cp-clone" } */
3
4 struct S
5 {
6 virtual int foo ()
7 {
8 return foo () == 0;
9 }
10 virtual void baz ();
11 };
12
13 void A ()
14 {
15 S s;
16 s.foo ();
17 }