mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-19 02:08:06 +00:00

Differential Revision: http://reviews.llvm.org/D21624 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273692 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
406 B
LLVM
20 lines
406 B
LLVM
; RUN: llvm-link %s -S -o - | FileCheck %s
|
|
|
|
; CHECK: @g1 = global i32 0, !attach !0
|
|
@g1 = global i32 0, !attach !0
|
|
|
|
; CHECK: @g2 = external global i32, !attach !0
|
|
@g2 = external global i32, !attach !0
|
|
|
|
; CHECK: define void @f1() !attach !0
|
|
define void @f1() !attach !0 {
|
|
call void @f2()
|
|
store i32 0, i32* @g2
|
|
ret void
|
|
}
|
|
|
|
; CHECK: declare !attach !0 void @f2()
|
|
declare !attach !0 void @f2()
|
|
|
|
!0 = !{}
|