blob: 01f259738e3fc96f174b4cce8810b5f683a26746 [file] [log] [blame]
Tanya Lattnere9af5d12004-11-06 22:41:00 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner5f988c02002-03-14 19:27:43 +00003/* 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