[llvm-commits] CVS: llvm/test/Programs/SingleSource/Regression/C/2004-03-15-IndirectGoto.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 16 02:51:01 PST 2004
Changes in directory llvm/test/Programs/SingleSource/Regression/C:
2004-03-15-IndirectGoto.c added (r1.1)
---
Log message:
New testcase for PR273: http://llvm.cs.uiuc.edu/PR273
---
Diffs of the changes: (+16 -0)
Index: llvm/test/Programs/SingleSource/Regression/C/2004-03-15-IndirectGoto.c
diff -c /dev/null llvm/test/Programs/SingleSource/Regression/C/2004-03-15-IndirectGoto.c:1.1
*** /dev/null Tue Mar 16 02:50:43 2004
--- llvm/test/Programs/SingleSource/Regression/C/2004-03-15-IndirectGoto.c Tue Mar 16 02:50:33 2004
***************
*** 0 ****
--- 1,16 ----
+ #include <stdio.h>
+ int main() {
+ static const void *L[] = {&&L1, &&L2, &&L3, &&L4, 0 };
+ unsigned i = 0;
+ printf("A\n");
+ L1:
+ printf("B\n");
+ L2:
+ printf("C\n");
+ L3:
+ printf("D\n");
+ goto *L[i++];
+ L4:
+ printf("E\n");
+ return 0;
+ }
More information about the llvm-commits
mailing list