blob: ddecfb76429e6a315c863be671dae3d20c4a49af [file] [log] [blame]
Dan Gohman5bb7c7c2009-09-08 22:34:10 +00001; RUN: opt %s -dse -S | grep {store i32 0}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattnera695f012008-02-14 06:56:27 +00003define void @test({i32,i32 }* %P) {
4 %Q = getelementptr {i32,i32}* %P, i32 1
5 %X = getelementptr {i32,i32}* %Q, i32 0, i32 1
6 %Y = getelementptr {i32,i32}* %Q, i32 1, i32 1
7 store i32 0, i32* %X
8 store i32 1, i32* %Y
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009 ret void
10}