summaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-ml/anonymous_labels_errors.asm
blob: 8fcab381bbc03da7485ee09a0bf08118a9d27995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: not llvm-ml -filetype=s %s /Fo - 2>&1 | FileCheck %s --implicit-check-not=error:

.code

; CHECK: :[[# @LINE + 2]]:5: error: Expected @@ label before @B reference
; CHECK: :[[# @LINE + 1]]:7: error: Unexpected identifier!
jmp @B

@@:
  jmp @B
  jmp @F
@@:
  xor eax, eax

; NOTE: a trailing @F will not fail; fixing this seems to require two passes.
jmp @F