aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/unique-fwd-decl-a.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/unique-fwd-decl-a.ll')
-rw-r--r--test/Linker/unique-fwd-decl-a.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Linker/unique-fwd-decl-a.ll b/test/Linker/unique-fwd-decl-a.ll
new file mode 100644
index 0000000..b9c7b2f
--- /dev/null
+++ b/test/Linker/unique-fwd-decl-a.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-link %s %S/Inputs/unique-fwd-decl-b.ll -S -o - | FileCheck %s
+
+; Test that the arguments of !a and !b get uniqued.
+; CHECK: !a = !{!0}
+; CHECK: !b = !{!0}
+
+!a = !{!0}
+!0 = metadata !{metadata !1}
+!1 = metadata !{}