2011-01-09 00:42:36 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2014-08-20 05:08:27 +08:00
|
|
|
; RUN: verify-uselistorder %s
|
2011-01-09 00:42:36 +08:00
|
|
|
|
|
|
|
%struct.foobar = type { i32 }
|
|
|
|
|
|
|
|
@bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
|
|
|
|
@foo.d = internal constant %struct.foobar zeroinitializer, align 4
|
|
|
|
|
2011-01-26 03:09:56 +08:00
|
|
|
define i32 @main() unnamed_addr nounwind ssp {
|
2011-01-09 00:42:36 +08:00
|
|
|
entry:
|
|
|
|
%call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d) nounwind
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @zed(%struct.foobar*, %struct.foobar*)
|
|
|
|
|
|
|
|
; CHECK: @bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
|
|
|
|
; CHECK: @foo.d = internal constant %struct.foobar zeroinitializer, align 4
|
2013-02-20 15:21:42 +08:00
|
|
|
; CHECK: define i32 @main() unnamed_addr #0 {
|
|
|
|
|
|
|
|
; CHECK: attributes #0 = { nounwind ssp }
|