mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
c49d7dd886
Upgrade tests to work with new llvm.exp version of llvm_runtest. llvm-svn: 36013
12 lines
467 B
LLVM
12 lines
467 B
LLVM
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {ret i32 0}
|
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep malloc
|
|
; PR1201
|
|
define i32 @main(i32 %argc, i8** %argv) {
|
|
%c_19 = alloca i8* ; <i8**> [#uses=2]
|
|
%malloc_206 = malloc i8, i32 10 ; <i8*> [#uses=1]
|
|
store i8* %malloc_206, i8** %c_19
|
|
%tmp_207 = load i8** %c_19 ; <i8*> [#uses=1]
|
|
free i8* %tmp_207
|
|
ret i32 0
|
|
}
|