diff options
author | Devang Patel <dpatel@apple.com> | 2009-08-11 06:46:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-08-11 06:46:31 +0000 |
commit | ae709eaeb12e4a293e812c61514a9ebd9e24fe14 (patch) | |
tree | 6cc941194c6b767ceef5b2364a273b0a7983b178 /test/Linker | |
parent | 9d3627ea27195534242ec8026a9b8c888b85bbba (diff) | |
download | external_llvm-ae709eaeb12e4a293e812c61514a9ebd9e24fe14.zip external_llvm-ae709eaeb12e4a293e812c61514a9ebd9e24fe14.tar.gz external_llvm-ae709eaeb12e4a293e812c61514a9ebd9e24fe14.tar.bz2 |
Link metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker')
-rw-r--r-- | test/Linker/linkmdnode.ll | 12 | ||||
-rw-r--r-- | test/Linker/linkmdnode2.ll | 12 |
2 files changed, 24 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 +} diff --git a/test/Linker/linkmdnode2.ll b/test/Linker/linkmdnode2.ll new file mode 100644 index 0000000..54a5a57 --- /dev/null +++ b/test/Linker/linkmdnode2.ll @@ -0,0 +1,12 @@ +; This file is used by linkmdnode.ll, so it doesn't actually do anything itself +; +; RUN: true + +!22 = metadata !{i32 42, metadata !"foobar"} + +declare i8 @llvm.something(metadata %a) +define void @foo1() { + ;; Intrinsic using MDNode and MDString + %x = call i8 @llvm.something(metadata !22) + ret void +} |