llvm-6502/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll
Matthijs Kooijman 888fa33cfb Fix some escaping and quoting in RUN lines, mainly involving { and <. In two
cases quoting of <{ didn't work out, so I changed the grep to check for }>
instead.

This fixes 7 testcases that were not properly running before.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52182 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-10 16:04:47 +00:00

14 lines
380 B
LLVM

; Scalar replacement was incorrectly promoting this alloca!!
;
; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | \
; RUN: sed {s/;.*//g} | grep {\\\[}
define i8* @test() {
%A = alloca [30 x i8] ; <[30 x i8]*> [#uses=1]
%B = getelementptr [30 x i8]* %A, i64 0, i64 0 ; <i8*> [#uses=2]
%C = getelementptr i8* %B, i64 1 ; <i8*> [#uses=1]
store i8 0, i8* %B
ret i8* %C
}