1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/MC/Mips/unsupported-relocation.s

14 lines
408 B
ArmAsm
Raw Normal View History

# RUN: not llvm-mc -triple mips-unknown-linux -filetype=obj -o %t %s 2>&1 \
# RUN: | FileCheck %s
# Check that we emit an error for unsupported relocations instead of crashing.
.globl x
.data
foo:
.byte x
# CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations
.byte x+1
# CHECK: :[[@LINE-1]]:17: error: MIPS does not support one byte relocations