diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-29 18:20:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-29 18:20:20 +0000 |
commit | 72032861c6a10d1a8cef2061cfcec45de7c0b3ed (patch) | |
tree | 6fd44dc9c2b04856a5a33d99a1f38b7aeb1ad131 /llvm/test | |
parent | bea7b93c884412b61a068dc459027089d9764e7e (diff) | |
download | bcm5719-llvm-72032861c6a10d1a8cef2061cfcec45de7c0b3ed.tar.gz bcm5719-llvm-72032861c6a10d1a8cef2061cfcec45de7c0b3ed.zip |
MCAsmLayout: Add support for computing the symbol offset of variables. Not
currently used, because variables don't get reported as being "defined".
llvm-svn: 130524
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/MachO/variable-errors.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/MachO/variable-errors.s b/llvm/test/MC/MachO/variable-errors.s new file mode 100644 index 00000000000..28308c691d9 --- /dev/null +++ b/llvm/test/MC/MachO/variable-errors.s @@ -0,0 +1,8 @@ +// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o %t.o 2> %t.err +// RUN: FileCheck < %t.err %s + + .data +t0_a: +t0_x = t0_a - t0_b +// CHECK: unable to evaluate offset to undefined symbol 't0_b' + .long t0_x |