projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add new interfaces
[oota-llvm.git]
/
test
/
CFrontend
/
2004-03-15-SimpleIndirectGoto.c
1
int code[]={0,0,0,0,1};
2
void foo(int x) {
3
volatile int b;
4
b = 0xffffffff;
5
}
6
void bar(int *pc) {
7
static const void *l[] = {&&lab0, &&end};
8
9
foo(0);
10
goto *l[*pc];
11
lab0:
12
foo(0);
13
pc++;
14
goto *l[*pc];
15
end:
16
return;
17
}
18
int main() {
19
bar(code);
20
return 0;
21
}