mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
ba1f8ebc88
Crashing is bad, m'kay? Fixing a 4 year old bug of my own creation. Adding the testcase now which I should have added then which would have long since caught this. The problem is that printMessage() will display the diagnostic but not set HadError to true, resulting in the assembler continuing on its way and trying to create relocations for things that may not allow them or otherwise get itself into trouble. Using the Error() helper function here rather than calling printMessage() directly resolves this. rdar://23133240 llvm-svn: 250557
9 lines
323 B
ArmAsm
9 lines
323 B
ArmAsm
# RUN: not llvm-mc -triple i386-apple-darwin -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s
|
|
|
|
# NOTE: apple-darwin portion of the triple is to enforce the convention choice
|
|
# of what an assembler local symbol looks like (i.e., 'L' prefix.)
|
|
|
|
# CHECK: error: assembler local symbol 'Lbar' not defined
|
|
foo:
|
|
jmp Lbar
|