blob: 3c94ca213081f5d1c189ee32a09fa63d5bd52a21 [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
Rafael Espindola3971df52011-01-25 19:09:56 +00008define i32 @main() unnamed_addr nounwind ssp {
Rafael Espindolabea46262011-01-08 16:42:36 +00009entry:
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
Rafael Espindola3971df52011-01-25 19:09:56 +000018; CHECK: define i32 @main() unnamed_addr nounwind ssp {