Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: grep "ret i32" %t | count 1 |
Daniel Dunbar | 16f2357 | 2008-07-25 01:11:38 +0000 | [diff] [blame] | 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 | } |