blob: 3e3dc4b2d2bcf8219d912e42dd1dc736fa6ccf70 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s
Dan Gohman1f565bc2008-08-04 23:30:41 +00002; PR2625
3
4define i32 @main({ i32, { i32 } }*) {
5entry:
6 %state = alloca { i32, { i32 } }* ; <{ i32, { i32 } }**> [#uses=2]
7 store { i32, { i32 } }* %0, { i32, { i32 } }** %state
8 %retval = alloca i32 ; <i32*> [#uses=2]
9 store i32 0, i32* %retval
10 load { i32, { i32 } }** %state ; <{ i32, { i32 } }*>:1 [#uses=1]
11 store { i32, { i32 } } zeroinitializer, { i32, { i32 } }* %1
12 br label %return
13
14return: ; preds = %entry
15 load i32* %retval ; <i32>:2 [#uses=1]
16 ret i32 %2
17}