blob: 562c961e7d469cb90533c9c4f9372dd33f1fde44 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -anders-aa -gvn -S \
Daniel Berlinb68539d2008-03-18 22:22:53 +00002; RUN: | not grep {ret i32 undef}
3
4;; From PR 2160
5declare void @f(i32*)
6
7define i32 @g() {
8entry:
9 %tmp = alloca i32 ; <i32*> [#uses=2]
10 call void @f( i32* %tmp )
11 %tmp2 = load i32* %tmp ; <i32> [#uses=1]
12 ret i32 %tmp2
13}
14