aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-11 18:01:24 +0000
committerDevang Patel <dpatel@apple.com>2009-08-11 18:01:24 +0000
commit0e361fbeb329cb0f8e56e2d7f1b8b70512d92875 (patch)
tree2b94953480af82399bdce3668793a07896be29be /test
parent37206ab80a7dfdbf927dc1d83591680ce4765e67 (diff)
downloadexternal_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.ll6
-rw-r--r--test/Linker/linknamedmdnode2.ll6
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}