Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGen/constant-comparison.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -emit-llvm %s -o - 2>&1 | not grep warning // RUN: %clang_cc1 -fno-ident -emit-llvm %s -o - | grep @b | count 1 int a, b; int *c1 = 1 < 2 ? &a : &b; int *c2 = 3 != 3LL ? &b : &a; int *c3 = !(3 <= 4.0) ? &b : &a; int *c4 = &a - (6 * 5 > 30); int *c5 = &a + (6 * 5 >= 30); int c6 = 44 < 33;