Debian Codegraph @

gcc/testsuite/g++.dg/ipa/pr113757.C

raw
1 // { dg-do compile }
2 // { dg-options "-O2 -fPIC" }
3 // { dg-require-effective-target fpic }
4
5 long size();
6 struct ll { virtual int hh(); };
7 ll *slice_owner;
8 int ll::hh() { __builtin_exit(0); }
9 int nn() {
10 if (size())
11 return 0;
12 return slice_owner->hh();
13 }
14 int (*a)() = nn;