blob: 35b3b39ce48f3eeb29fdf2bffc97e9f6e40dc5aa [file] [log] [blame]
Rafael Espindola45e6c192011-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 Espindola563eb4b2011-01-25 19:09:56 +00008define i32 @main() unnamed_addr nounwind ssp {
Rafael Espindola45e6c192011-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
Bill Wendling90bc19c2013-02-20 07:21:42 +000018; CHECK: define i32 @main() unnamed_addr #0 {
19
20; CHECK: attributes #0 = { nounwind ssp }