blob: 89bd4928a476f690f16cb73aa9c8f33826b0adf1 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This input caused the mem2reg pass to die because it was trying to promote
2; the %r alloca, even though it is invalid to do so in this case!
3;
Dan Gohman3c7d3082009-09-11 18:01:28 +00004; RUN: opt < %s -mem2reg
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattner97b38e12008-03-19 05:39:35 +00006define void @test() {
7 %r = alloca i32 ; <i32*> [#uses=2]
8 store i32 4, i32* %r
9 store i32* %r, i32** null
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010 ret void
Tanya Lattner97b38e12008-03-19 05:39:35 +000011}
12