blob: a4828c3c45c3334d51606c89dab722d5c018085e [file] [log] [blame]
Rafael Espindolabea46262011-01-08 16:42:36 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3%struct.foobar = type { i32 }
4
5@bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
6@foo.d = internal constant %struct.foobar zeroinitializer, align 4
7
8define unnamed_addr i32 @main() nounwind ssp {
9entry:
10 %call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d) nounwind
11 ret i32 0
12}
13
14declare i32 @zed(%struct.foobar*, %struct.foobar*)
15
16; CHECK: @bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
17; CHECK: @foo.d = internal constant %struct.foobar zeroinitializer, align 4
18; CHECK: define unnamed_addr i32 @main() nounwind ssp {