aboutsummaryrefslogtreecommitdiff
path: root/test/MC/ELF/section-quoting.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/section-quoting.s')
-rw-r--r--test/MC/ELF/section-quoting.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ELF/section-quoting.s b/test/MC/ELF/section-quoting.s
new file mode 100644
index 000000000000..3751e722952d
--- /dev/null
+++ b/test/MC/ELF/section-quoting.s
@@ -0,0 +1,10 @@
+// RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -o - | FileCheck %s
+
+// Test that we handle the strings like gas
+.section bar-"foo"
+.section "foo"
+.section "foo bar"
+
+// CHECK: .section "bar-\"foo\""
+// CHECK: .section foo
+// CHECK: .section "foo bar"