aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/linkmdnode.ll
blob: 2469c29d43e4701705c0198586e4cda45f6d73e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-as < %s > %t.bc
; RUN: llvm-as < %p/linkmdnode2.ll > %t2.bc
; RUN: llvm-link %t.bc %t2.bc


!21 = !{i32 42, !"foobar"}

declare i8 @llvm.something(metadata %a)
define void @foo() {
  %x = call i8 @llvm.something(metadata !21)
  ret void
}