New testcase, for PR 115
[oota-llvm.git] / test / CFrontend / 2002-03-14-BrokenSSA.c
1 /* This code used to break GCC's SSA computation code.  It would create
2    uses of B & C that are not dominated by their definitions.  See:
3    http://gcc.gnu.org/ml/gcc/2002-03/msg00697.html
4  */
5 int bar();
6 int foo()
7 {
8   int a,b,c;
9
10   a = b + c;
11   b = bar();
12   c = bar();
13   return a + b + c;
14 }
15