Debian Codegraph @

gcc/testsuite/g++.dg/ext/label14.C

raw
1 // PR c++/53812
2 // { dg-do compile }
3 // { dg-options "" }
4 // { dg-require-effective-target indirect_jumps }
5
6 struct T { T () : t(0) {}; int t; ~T (); };
7 struct S { void *operator [] (T); };
8 void bar (S &, void *, void *);
9
10 void
11 foo (S &x, T &y)
12 {
13 bar (x, &&l1, &&l2);
14 l1:
15 goto *x[y];
16 l2:
17 bar (x, &&l1, &&l2);
18 }