Daniel Dunbar | 0d7b091 | 2009-02-03 21:54:49 +0000 | [diff] [blame] | 1 | // RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t && |
Daniel Dunbar | 16f2357 | 2008-07-25 01:11:38 +0000 | [diff] [blame] | 2 | // RUN: grep "ret i32" %t | count 1 && |
3 | // RUN: grep "ret i32 3" %t | count 1 | ||||
4 | |||||
5 | int f2(unsigned x) { | ||||
6 | switch(x) { | ||||
7 | default: | ||||
8 | return 3; | ||||
9 | case 0xFFFFFFFF ... 1: // This range should be empty because x is unsigned. | ||||
10 | return 0; | ||||
11 | } | ||||
12 | } |