1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Testcase for PR2160.

llvm-svn: 48655
This commit is contained in:
Duncan Sands 2008-03-21 20:22:11 +00:00
parent 32a6116ffd
commit 8e40ac013e

View File

@ -0,0 +1,12 @@
; RUN: llvm-as < %s | opt -anders-aa -gvn | llvm-dis | not grep undef
; PR2160
declare void @f(i32*)
define i32 @g() {
entry:
%tmp = alloca i32 ; <i32*> [#uses=2]
call void @f( i32* %tmp )
%tmp2 = load i32* %tmp ; <i32> [#uses=1]
ret i32 %tmp2
}