You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
318 B
24 lines
318 B
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
|
|
|
|
int code[]={0,0,0,0,1};
|
|
void foo(int x) {
|
|
volatile int b;
|
|
b = 0xffffffff;
|
|
}
|
|
void bar(int *pc) {
|
|
static const void *l[] = {&&lab0, &&end};
|
|
|
|
foo(0);
|
|
goto *l[*pc];
|
|
lab0:
|
|
foo(0);
|
|
pc++;
|
|
goto *l[*pc];
|
|
end:
|
|
return;
|
|
}
|
|
int main() {
|
|
bar(code);
|
|
return 0;
|
|
}
|