2011-01-08 17:42:36 +01:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
|
|
|
|
%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-25 20:09:56 +01:00
|
|
|
define i32 @main() unnamed_addr nounwind ssp {
|
2011-01-08 17:42:36 +01: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 08:21:42 +01:00
|
|
|
; CHECK: define i32 @main() unnamed_addr #0 {
|
|
|
|
|
|
|
|
; CHECK: attributes #0 = { nounwind ssp }
|