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