mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
14 lines
362 B
LLVM
14 lines
362 B
LLVM
; Scalar replacement was incorrectly promoting this alloca!!
|
|
;
|
|
; RUN: opt < %s -scalarrepl -S | \
|
|
; 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
|
|
}
|
|
|