mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
0a6f1ba3df
Since we can't emit diagnostics for missing "jmp 1f" labels until the end of the file, we need to be able to restore the context used to calculate file/line. This is basically the "# line file" directive that's being used at the time the expression is seen. rdar://25706972 llvm-svn: 266238
13 lines
384 B
ArmAsm
13 lines
384 B
ArmAsm
// RUN: not llvm-mc -triple x86_64-linux-gnu -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined
|
|
jmp 1b
|
|
// CHECK: [[@LINE+1]]:{{[0-9]+}}: error: directional label undefined
|
|
jmp 1f
|
|
# 10 "wibble.s"
|
|
// CHECK: wibble.s:11:{{[0-9]+}}: error: directional label undefined
|
|
jmp 2f
|
|
|
|
# 42 "invalid.s"
|
|
|