Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target indirect_jumps } */
3
4 struct s { ~s() { s(); } };
5
6 int f()
7 {
8 M: // { dg-warning "jump" }
9 s o = s(); // { dg-message "does not destroy" }
10 f();
11 f();
12
13 L:
14 goto *(f() ? &&L : &&M); // { dg-message "computed goto" }
15
16 return 0;
17 }