summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/comdat12.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Linker/comdat12.ll')
-rw-r--r--llvm/test/Linker/comdat12.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Linker/comdat12.ll b/llvm/test/Linker/comdat12.ll
new file mode 100644
index 00000000000..d06e222b63a
--- /dev/null
+++ b/llvm/test/Linker/comdat12.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-link %s -S -o - | FileCheck %s
+
+$foo = comdat largest
+define internal void @foo() comdat($foo) {
+ ret void
+}
+
+; CHECK-NOT: foo
OpenPOWER on IntegriCloud