diff options
Diffstat (limited to 'test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c')
-rw-r--r-- | test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c b/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c deleted file mode 100644 index 48a6cc2..0000000 --- a/test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c +++ /dev/null @@ -1,15 +0,0 @@ -// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t -// RUN: grep "ret i32 %" %t - -// Make sure return is not constant (if empty range is skipped or miscompiled) - -int f0(unsigned x) { - switch(x) { - case 2: - // fallthrough empty range - case 10 ... 9: - return 10; - default: - return 0; - } -} |