1; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2; RUN: verify-uselistorder %s
3
4%struct.foobar = type { i32 }
5
6@bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
7@foo.d = internal constant %struct.foobar zeroinitializer, align 4
8
9define i32 @main() unnamed_addr nounwind ssp {
10entry:
11  %call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d) nounwind
12  ret i32 0
13}
14
15declare i32 @zed(%struct.foobar*, %struct.foobar*)
16
17; CHECK: @bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
18; CHECK: @foo.d = internal constant %struct.foobar zeroinitializer, align 4
19; CHECK: define i32 @main() unnamed_addr #0 {
20
21; CHECK: attributes #0 = { nounwind ssp }
22