diff options
Diffstat (limited to 'test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c')
| -rw-r--r-- | test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c b/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c deleted file mode 100644 index ba41b519fcca4..0000000000000 --- a/test/CodeGen/rdr-6098585-default-fallthrough-to-caserange.c +++ /dev/null @@ -1,20 +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 10" %t - -// Ensure that this doesn't compile to infinite loop in g() due to -// miscompilation of fallthrough from default to a (tested) case -// range. - -static int f0(unsigned x) { - switch(x) { - default: - x += 1; - case 10 ... 0xFFFFFFFF: - return 0; - } -} - -int g() { - f0(1); - return 10; -} |
