xref: /aosp_15_r20/external/llvm/test/MC/Mips/reloc-directive-bad.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -triple mips-unknown-linux < %s -show-encoding -target-abi=o32 \
2*9880d681SAndroid Build Coastguard Worker# RUN:     2>&1 | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker	.text
4*9880d681SAndroid Build Coastguard Workerfoo:
5*9880d681SAndroid Build Coastguard Worker	.reloc 0, R_MIPS_32, .text+.text # CHECK: :[[@LINE]]:23: error: expression must be relocatable
6*9880d681SAndroid Build Coastguard Worker	nop
7