[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / macho-reloc-errors-x86.s
blob4af202220073b120a6f0b0043fc6feb41b5235cd
1 // RUN: not llvm-mc -triple=i686-apple-darwin -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
2 .space 0x1000000
3 mov %eax, thing-thing2
4 mov %eax, defined-thing2
5 mov %eax, later-defined
7 .section __DATA,__tim
8 defined:
10 .section __DATA,__tim2
11 later:
13 // CHECK-ERROR: 3:9: error: symbol 'thing' can not be undefined in a subtraction expression
14 // CHECK-ERROR: 4:9: error: symbol 'thing2' can not be undefined in a subtraction expression
15 // CHECK-ERROR: 5:9: error: Section too large, can't encode r_address (0x100000b) into 24 bits of scattered relocation entry.