aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/non-unique-sections.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/non-unique-sections.ll')
-rw-r--r--test/CodeGen/X86/non-unique-sections.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/non-unique-sections.ll b/test/CodeGen/X86/non-unique-sections.ll
new file mode 100644
index 0000000..e588b9d
--- /dev/null
+++ b/test/CodeGen/X86/non-unique-sections.ll
@@ -0,0 +1,15 @@
+; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections -unique-section-names=false | FileCheck %s
+
+; CHECK: .section .text,"ax",@progbits,unique
+; CHECK-NOT: section
+; CHECK: f:
+define void @f() {
+ ret void
+}
+
+; CHECK: .section .text,"ax",@progbits,unique
+; CHECK-NOT: section
+; CHECK: g:
+define void @g() {
+ ret void
+}