xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/constant-comparison.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - 2>&1 | not grep warning
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - | grep @b | count 1
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc int a, b;
5*f4a2713aSLionel Sambuc int *c1 = 1 < 2 ? &a : &b;
6*f4a2713aSLionel Sambuc int *c2 = 3 != 3LL ? &b : &a;
7*f4a2713aSLionel Sambuc int *c3 = !(3 <= 4.0) ? &b : &a;
8*f4a2713aSLionel Sambuc int *c4 = &a - (6 * 5 > 30);
9*f4a2713aSLionel Sambuc int *c5 = &a + (6 * 5 >= 30);
10*f4a2713aSLionel Sambuc int c6 = 44 < 33;
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc 
13