blob: a3f27b2a330148273c20f31c4c011103d4cdf555 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3int code[]={0,0,0,0,1};
4void foo(int x) {
5 volatile int b;
6 b = 0xffffffff;
7}
8void bar(int *pc) {
9 static const void *l[] = {&&lab0, &&end};
10
11 foo(0);
12 goto *l[*pc];
13 lab0:
14 foo(0);
15 pc++;
16 goto *l[*pc];
17 end:
18 return;
19}
20int main() {
21 bar(code);
22 return 0;
23}