blob: 6f577df188c5ff9339dd26aa250b13853d845b46 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis > %t
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: grep "ret i32" %t | count 1
Daniel Dunbar16f23572008-07-25 01:11:38 +00003// RUN: grep "ret i32 3" %t | count 1
4
5int 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}