blob: bca73054447c3d01729e1bd84f4ea2236d08281c [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s
Dan Gohman90d33ee2008-07-30 18:36:51 +00002; PR2612
3
4@current_foo = internal global { } zeroinitializer
5
6define i32 @foo() {
7entry:
8 %retval = alloca i32
9 store i32 0, i32* %retval
10 %local_foo = alloca { }
11 load { }* @current_foo
12 store { } %0, { }* %local_foo
13 br label %return
14
15return:
16 load i32* %retval
17 ret i32 %1
18}