[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-03-15-SimpleIndirectGoto.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 16 02:50:01 PST 2004
Changes in directory llvm/test/Regression/CFrontend:
2004-03-15-SimpleIndirectGoto.c added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+21 -0)
Index: llvm/test/Regression/CFrontend/2004-03-15-SimpleIndirectGoto.c
diff -c /dev/null llvm/test/Regression/CFrontend/2004-03-15-SimpleIndirectGoto.c:1.1
*** /dev/null Tue Mar 16 02:49:59 2004
--- llvm/test/Regression/CFrontend/2004-03-15-SimpleIndirectGoto.c Tue Mar 16 02:49:48 2004
***************
*** 0 ****
--- 1,21 ----
+ 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;
+ }
More information about the llvm-commits
mailing list