Home | History | Annotate | Download | only in Linker
      1 ; RUN: llvm-link %s -S -o - | FileCheck %s
      2 
      3 ; CHECK: @g1 = global i32 0, !attach !0
      4 @g1 = global i32 0, !attach !0
      5 
      6 ; CHECK: @g2 = external global i32, !attach !0
      7 @g2 = external global i32, !attach !0
      8 
      9 ; CHECK: define void @f1() !attach !0
     10 define void @f1() !attach !0 {
     11   call void @f2()
     12   store i32 0, i32* @g2
     13   ret void
     14 }
     15 
     16 ; CHECK: declare !attach !0 void @f2()
     17 declare !attach !0 void @f2()
     18 
     19 !0 = !{}
     20