summaryrefslogtreecommitdiff
path: root/test/Feature/comdat.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature/comdat.ll')
-rw-r--r--test/Feature/comdat.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Feature/comdat.ll b/test/Feature/comdat.ll
new file mode 100644
index 0000000000..6b94a41858
--- /dev/null
+++ b/test/Feature/comdat.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+
+$f = comdat any
+; CHECK: $f = comdat any
+
+$f2 = comdat any
+; CHECK-NOT: f2
+
+@v = global i32 0, comdat $f
+; CHECK: @v = global i32 0, comdat $f
+
+define void @f() comdat $f {
+ ret void
+}
+; CHECK: define void @f() comdat $f