Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / ScalarRepl / 2003-09-12-IncorrectPromote.ll
1 ; Scalar replacement was incorrectly promoting this alloca!!
2 ;
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | sed 's/;.*//g' | grep '\['
4
5 sbyte *%test() {
6         %A = alloca [30 x sbyte]
7         %B = getelementptr [30 x sbyte]* %A, long 0, long 0
8         %C = getelementptr sbyte* %B, long 1
9         store sbyte 0, sbyte* %B
10         ret sbyte* %C
11 }