Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 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 | ||||
Eli Friedman | b896596 | 2008-05-29 15:17:49 +0000 | [diff] [blame] | 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 |