Daniel Dunbar | 0d7b091 | 2009-02-03 21:54:49 +0000 | [diff] [blame] | 1 | // RUN: clang -triple i386-unknown-unknown %s -emit-llvm-bc -o - | opt -std-compile-opts | llvm-dis | grep 'ret i32 6' |
Chris Lattner | d5bbce4 | 2007-08-29 17:48:46 +0000 | [diff] [blame] | 2 | |
3 | static enum { foo, bar = 1U } z; | ||||
4 | |||||
5 | int main (void) | ||||
6 | { | ||||
7 | int r = 0; | ||||
8 | |||||
9 | if (bar - 2 < 0) | ||||
10 | r += 4; | ||||
11 | if (foo - 1 < 0) | ||||
12 | r += 2; | ||||
13 | if (z - 1 < 0) | ||||
14 | r++; | ||||
15 | |||||
16 | return r; | ||||
17 | } | ||||
18 |