diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-04-03 07:51:34 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-04-03 07:51:34 +0000 |
commit | ac616af773f5062edaaf1a0bb5610b49a22ac41f (patch) | |
tree | 1e9c2f464daf7966d11aa31cf069fa1bc63fdb21 /test/CodeGen/rdr-6098585-fallthrough-to-empty-range.c | |
parent | 07b2cfcdb817cc0790420f159a313d61e7241cb9 (diff) | |
download | FreeBSD-src-ac616af773f5062edaaf1a0bb5610b49a22ac41f.zip FreeBSD-src-ac616af773f5062edaaf1a0bb5610b49a22ac41f.tar.gz |
Update clang to r100285.
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; - } -} |