blob: 50b558d250c35bf47b9d2662cb6d98a69c9be054 [file] [log] [blame]
Daniel Dunbar0d7b0912009-02-03 21:54:49 +00001// RUN: clang -triple i386-unknown-unknown %s -emit-llvm-bc -o - | opt -std-compile-opts | llvm-dis | grep 'ret i32 6'
Chris Lattnerd5bbce42007-08-29 17:48:46 +00002
3static enum { foo, bar = 1U } z;
4
5int 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