aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2011-03-03 22:31:08 +0000
committerJoerg Sonnenberger <joerg@bec.de>2011-03-03 22:31:08 +0000
commitea83b133503afcd6589cf317cbb54ccd9e100f57 (patch)
treef282cb26d95a61d769e218e0ef5e5245e4d75bb0 /test/MC
parentbbd0f45b4711ee54f1c636a6de7afa766c855327 (diff)
downloadexternal_llvm-ea83b133503afcd6589cf317cbb54ccd9e100f57.zip
external_llvm-ea83b133503afcd6589cf317cbb54ccd9e100f57.tar.gz
external_llvm-ea83b133503afcd6589cf317cbb54ccd9e100f57.tar.bz2
Bug#9033: For the ELF assembler output, always quote the section name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-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 0000000..5335af1
--- /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"