xref: /llvm-project-15.0.7/llvm/test/tools/llvm-ml/anonymous_labels_errors.asm (revision cfec2080)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026