view test/MC/MachO/ARM/bad-darwin-ARM-reloc.s @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents 54457678186b
children
line wrap: on
line source

@ RUN: not llvm-mc -n -triple armv7-apple-darwin10 %s -filetype=obj -o - 2> %t.err > %t
@ RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
@ rdar://15586725
.text
    ldr r3, L___fcommon
.section myseg, mysect
L___fcommon: 
    .word 0
@ CHECK-ERROR: unsupported relocation on symbol

c:
  .word a - b
@ CHECK-ERROR: symbol 'a' can not be undefined in a subtraction expression
  .word c - b
@ CHECK-ERROR: symbol 'b' can not be undefined in a subtraction expression