2011-01-08 16:42:36 +00: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 19:09:56 +00:00
|
|
|
define i32 @main() unnamed_addr nounwind ssp {
|
2011-01-08 16:42:36 +00: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
|
2011-01-25 19:09:56 +00:00
|
|
|
; CHECK: define i32 @main() unnamed_addr nounwind ssp {
|