diff options
Diffstat (limited to 'llvm/test/MC/ELF/extra-section-flags.s')
| -rw-r--r-- | llvm/test/MC/ELF/extra-section-flags.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/extra-section-flags.s b/llvm/test/MC/ELF/extra-section-flags.s new file mode 100644 index 00000000000..c96516ee482 --- /dev/null +++ b/llvm/test/MC/ELF/extra-section-flags.s @@ -0,0 +1,10 @@ +# RUN: llvm-mc -triple x86_64-unknown-unknown -filetype=obj %s -o /dev/null 2>&1 | FileCheck %s + +.section .rodata, "ax" +# CHECK: warning: setting incorrect section attributes for .rodata +nop + +.section .rodata, "a" +# CHECK-NOT: warning: +nop + |

