xref: /llvm-project/llvm/test/tools/llvm-ml/anonymous_labels_errors.asm (revision 7d1a295484e3e6fd2dddec9ad73d3e227ed4629c)
1; RUN: not llvm-ml -filetype=s %s /Fo - 2>&1 | FileCheck %s --implicit-check-not=error:
2
3.code
4
5; CHECK: :[[# @LINE + 2]]:5: error: Expected @@ label before @B reference
6; CHECK: :[[# @LINE + 1]]:7: error: Unexpected identifier!
7jmp @B
8
9@@:
10  jmp @B
11  jmp @F
12@@:
13  xor eax, eax
14
15; NOTE: a trailing @F will not fail; fixing this seems to require two passes.
16jmp @F
17