blob: 65e5cfad815eeeae75777e4297b142dbd014e0e1 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// 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 */
7int bar();
8int 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