xref: /aosp_15_r20/external/llvm/test/MC/ELF/bad-expr2.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*9880d681SAndroid Build Coastguard Worker// RUN: 2>&1 | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker// CHECK: No relocation available to represent this relative expression
5*9880d681SAndroid Build Coastguard Worker// CHECK: call foo - bar
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker        call foo - bar
9*9880d681SAndroid Build Coastguard Worker        .section .foo
10*9880d681SAndroid Build Coastguard Workerfoo:
11*9880d681SAndroid Build Coastguard Worker        .section .bar
12*9880d681SAndroid Build Coastguard Workerbar:
13