repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
label14.C
blob
990673de67948bf7e2ae5767972fc8bc17190eed
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
}