1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CFrontend/cast-to-bool.c
2007-04-15 20:08:37 +00:00

18 lines
331 B
C

// RUN: %llvmgcc -S %s -o - | grep {trunc.*to i8}
// RUN: %llvmgcc -S %s -o - | llvm-as | opt -instcombine | llc -march=x86 | \
// RUN: grep {test.*1}
int
main ( int argc, char** argv)
{
int i;
int result = 1;
for (i = 2; i <= 3; i++)
{
if ((i & 1) == 0)
{
result = result + 17;
}
}
return result;
}