xref: /llvm-project/clang/test/CodeGen/2002-04-07-SwitchStmt.c (revision 1ea584377e7897f7df5302ed9cd378d17be14fbf)
1 // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2 
3 int printf(const char *, ...);
4 int foo(void);
5 
main(void)6 int main(void) {
7   while (foo()) {
8      switch (foo()) {
9      case 0:
10      case 1:
11      case 2:
12      case 3:
13        printf("3");
14      case 4: printf("4");
15      case 5:
16      case 6:
17      default:
18        break;
19      }
20    }
21    return 0;
22 }
23