1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -triple thumbv7-windows -incremental-linker-compatible -filetype obj -o /dev/null 2>&1 %s \ 2*9880d681SAndroid Build Coastguard Worker# RUN: | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker .def invalid_relocation 5*9880d681SAndroid Build Coastguard Worker .type 32 6*9880d681SAndroid Build Coastguard Worker .scl 2 7*9880d681SAndroid Build Coastguard Worker .endef 8*9880d681SAndroid Build Coastguard Worker .global invalid_relocation 9*9880d681SAndroid Build Coastguard Worker .thumb_func 10*9880d681SAndroid Build Coastguard Workerinvalid_relocation: 11*9880d681SAndroid Build Coastguard Worker adr r0, invalid_relocation+1 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker# CHECK: LLVM ERROR: unsupported relocation type: fixup_t2_adr_pcrel_12 14*9880d681SAndroid Build Coastguard Worker 15