Spelling fix.
[oota-llvm.git] / test / CFrontend / cast-to-bool.c
1 // RUN: %llvmgcc -S %s -o - | grep {trunc.*to i8}
2 // RUN: %llvmgcc -S %s -o - | llvm-as | opt -instcombine | llc -march=x86 | \
3 // RUN:   grep {test.*1}
4 int
5 main ( int argc, char** argv)
6 {
7   int i;
8   int result = 1;
9   for (i = 2; i <= 3; i++)
10     {
11       if ((i & 1) == 0)
12         {
13             result = result + 17;
14         }
15     }
16   return result;
17 }