Debian Codegraph @

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

raw
1 __attribute__((noreturn)) void f1(void)
2 {
3 while(true) {}
4 }
5 static void (*fptr)(void) = f1;
6 struct s1
7 {
8 ~s1() {
9 fptr();
10 }
11 void DoInner() {
12 fptr();
13 }
14 };
15
16 void f()
17 {
18 s1 xxx;
19 xxx.DoInner();
20 }