diff options
Diffstat (limited to 'test/Linker/linkmdnode.ll')
-rw-r--r-- | test/Linker/linkmdnode.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Linker/linkmdnode.ll b/test/Linker/linkmdnode.ll new file mode 100644 index 0000000..be74550 --- /dev/null +++ b/test/Linker/linkmdnode.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s > %t.bc +; RUN: llvm-as < %p/linkmdnode2.ll > %t2.bc +; RUN: llvm-link %t.bc %t2.bc + + +!21 = metadata !{i32 42, metadata !"foobar"} + +declare i8 @llvm.something(metadata %a) +define void @foo() { + %x = call i8 @llvm.something(metadata !21) + ret void +} |