xref: /llvm-project/llvm/test/MC/ELF/bad-section.s (revision b3ed72ed48e69d919fe25973ceb06a456d8be450)
1// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>%t
2// RUN: FileCheck --input-file=%t %s
3
4// CHECK: :[[#@LINE+5]]:15: error: expected end of directive
5// CHECK: .section "foo"-bar
6
7// test that we don't accept this, as gas doesn't.
8
9.section "foo"-bar
10