[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2003-10-13-SwitchTest.c
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 13 15:32:01 PDT 2003
Changes in directory llvm/test/Programs/SingleSource/UnitTests:
2003-10-13-SwitchTest.c added (r1.1)
---
Log message:
New testcase for PR 37
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Programs/SingleSource/UnitTests/2003-10-13-SwitchTest.c
diff -c /dev/null llvm/test/Programs/SingleSource/UnitTests/2003-10-13-SwitchTest.c:1.1
*** /dev/null Mon Oct 13 15:31:38 2003
--- llvm/test/Programs/SingleSource/UnitTests/2003-10-13-SwitchTest.c Mon Oct 13 15:31:28 2003
***************
*** 0 ****
--- 1,14 ----
+ #include <stdio.h>
+
+ int main(int argc) {
+ switch (argc) {
+ default:
+ printf("GOOD\n");
+ return 0;
+ case 100:
+ case 101:
+ case 1023:
+ printf("BAD\n");
+ return 1;
+ }
+ }
More information about the llvm-commits
mailing list