diff options
author | Devang Patel <dpatel@apple.com> | 2009-08-11 18:01:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-08-11 18:01:24 +0000 |
commit | 0e361fbeb329cb0f8e56e2d7f1b8b70512d92875 (patch) | |
tree | 2b94953480af82399bdce3668793a07896be29be /test | |
parent | 37206ab80a7dfdbf927dc1d83591680ce4765e67 (diff) | |
download | external_llvm-0e361fbeb329cb0f8e56e2d7f1b8b70512d92875.zip external_llvm-0e361fbeb329cb0f8e56e2d7f1b8b70512d92875.tar.gz external_llvm-0e361fbeb329cb0f8e56e2d7f1b8b70512d92875.tar.bz2 |
Link NamedMDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Linker/linknamedmdnode.ll | 6 | ||||
-rw-r--r-- | test/Linker/linknamedmdnode2.ll | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/Linker/linknamedmdnode.ll b/test/Linker/linknamedmdnode.ll new file mode 100644 index 0000000..455b3b8 --- /dev/null +++ b/test/Linker/linknamedmdnode.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s > %t.bc +; RUN: llvm-as < %p/linknamedmdnode2.ll > %t2.bc +; RUN: llvm-link %t.bc %t2.bc | llvm-dis | grep "!llvm.stuff = !{!0, !1}" + +!0 = metadata !{i32 42} +!llvm.stuff = !{!0} diff --git a/test/Linker/linknamedmdnode2.ll b/test/Linker/linknamedmdnode2.ll new file mode 100644 index 0000000..d16f62a --- /dev/null +++ b/test/Linker/linknamedmdnode2.ll @@ -0,0 +1,6 @@ +; This file is used by linknamedmdnode.ll, so it doesn't actually do anything itself +; +; RUN: true + +!0 = metadata !{i32 41} +!llvm.stuff = !{!0} |