New testcase, for PR 115
[oota-llvm.git] / test / CFrontend / 2002-03-14-BrokenPHINode.c
1 /* GCC was generating PHI nodes with an arity < #pred of the basic block the
2  * PHI node lived in.  This was breaking LLVM because the number of entries
3  * in a PHI node must equal the number of predecessors for a basic block.
4  */
5
6 int trys(char *s, int x)
7 {
8   int asa;
9   double Val;
10   int LLS;
11   if (x) {
12     asa = LLS + asa;
13   } else {
14   }
15   return asa+(int)Val;
16 }
17