xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2002-03-14-BrokenSSA.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2 
3 /* This code used to break GCC's SSA computation code.  It would create
4    uses of B & C that are not dominated by their definitions.  See:
5    http://gcc.gnu.org/ml/gcc/2002-03/msg00697.html
6  */
7 int bar();
foo()8 int foo()
9 {
10   int a,b,c;
11 
12   a = b + c;
13   b = bar();
14   c = bar();
15   return a + b + c;
16 }
17 
18