Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / 2004-03-15-SimpleIndirectGoto.c
blob8bfcd6aabe710e11ca994d1b7228f789407b4ac3
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
3 int code[]={0,0,0,0,1};
4 void foo(int x) {
5 volatile int b;
6 b = 0xffffffff;
8 void bar(int *pc) {
9 static const void *l[] = {&&lab0, &&end};
11 foo(0);
12 goto *l[*pc];
13 lab0:
14 foo(0);
15 pc++;
16 goto *l[*pc];
17 end:
18 return;
20 int main(void) {
21 bar(code);
22 return 0;