diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2011-03-03 22:31:08 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2011-03-03 22:31:08 +0000 |
commit | ea83b133503afcd6589cf317cbb54ccd9e100f57 (patch) | |
tree | f282cb26d95a61d769e218e0ef5e5245e4d75bb0 /test/MC/ELF | |
parent | bbd0f45b4711ee54f1c636a6de7afa766c855327 (diff) |
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/ELF')
-rw-r--r-- | test/MC/ELF/section-quoting.s | 10 |
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 0000000000..5335af16ba --- /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" |