aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Linker/Inputs/metadata-attach.ll
blob: 1ff4302651cf8d51a3bd6abc316435e4013a4020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@g1 = external global i32, !attach !0

@g2 = global i32 1, !attach !0

@g3 = global i32 2, !attach !0

declare !attach !0 void @f1()

define void @f2() !attach !0 {
  call void @f1()
  store i32 0, ptr @g1
  ret void
}

define void @f3() !attach !0 {
  ret void
}

!0 = !{i32 1}