2009-09-09 00:50:01 +08:00
|
|
|
; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 0}
|
|
|
|
; RUN: opt %s -instcombine | llvm-dis | not grep malloc
|
2007-04-14 08:19:36 +08:00
|
|
|
; 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
|
|
|
|
}
|