From 0bfaf3b7b54aee97c6d0c4c9d7e483350eac4722 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 8 Apr 2002 18:48:27 +0000 Subject: [PATCH] Checkin old testcase for switch statement. For now we just decimate them to conditional branches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2159 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2002-04-07-SwitchStmt.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/CFrontend/2002-04-07-SwitchStmt.c diff --git a/test/CFrontend/2002-04-07-SwitchStmt.c b/test/CFrontend/2002-04-07-SwitchStmt.c new file mode 100644 index 00000000000..178076c8528 --- /dev/null +++ b/test/CFrontend/2002-04-07-SwitchStmt.c @@ -0,0 +1,20 @@ +int printf(const char *, ...); +int foo(); + +int main() { + while (foo()) { + switch (foo()) { + case 0: + case 1: + case 2: + case 3: + printf("3"); + case 4: printf("4"); + case 5: + case 6: + default: + break; + } + } + return 0; +} -- 2.34.1