aboutsummaryrefslogtreecommitdiff
path: root/test/Linker/comdat9.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/comdat9.ll')
-rw-r--r--test/Linker/comdat9.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Linker/comdat9.ll b/test/Linker/comdat9.ll
new file mode 100644
index 000000000000..f155a6e35626
--- /dev/null
+++ b/test/Linker/comdat9.ll
@@ -0,0 +1,19 @@
+; RUN: llvm-link %s -S -o - | FileCheck %s
+
+$c = comdat any
+@a = alias void ()* @f
+define internal void @f() comdat($c) {
+ ret void
+}
+
+; CHECK-DAG: $c = comdat any
+; CHECK-DAG: @a = alias void ()* @f
+; CHECK-DAG: define internal void @f() comdat($c)
+
+$f2 = comdat largest
+define internal void @f2() comdat($f2) {
+ ret void
+}
+
+; CHECK-DAG: $f2 = comdat largest
+; CHECK-DAG: define internal void @f2() comdat {