xref: /aosp_15_r20/external/llvm/test/MC/ELF/bad-section.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>%t
2*9880d681SAndroid Build Coastguard Worker// RUN: FileCheck --input-file=%t %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker// CHECK: error: unexpected token in directive
5*9880d681SAndroid Build Coastguard Worker// CHECK: .section "foo"-bar
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker// test that we don't accept this, as gas doesn't.
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker.section "foo"-bar
10