llvm/llvm/test/DebugInfo/Symbolize/ELF/riscv-temporary-symbol.s

# REQUIRES: riscv-registered-target
## Ignore .L0 symbols that are generated by LLVM integrated assembler and GNU
## assembler for .debug_line/.eh_frame related assembler directives.

# RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t
# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=SYM

# SYM: 0000000000000004  0 NOTYPE LOCAL  DEFAULT [[#]] .L0 {{$}}
# SYM: 0000000000000000  0 NOTYPE GLOBAL DEFAULT [[#]] foo

## Make sure we test at an address larger than or equal to an empty name symbol.
# RUN: llvm-symbolizer --obj=%t 0 4 | FileCheck %s

# CHECK:       foo
# CHECK-NEXT:  ??:0:0
# CHECK-EMPTY:
# CHECK-NEXT:  foo
# CHECK-NEXT:  ??:0:0

.globl foo
foo:
  nop
  .file 1 "/tmp" "a.s"
  .loc 1 1 0
  nop

.section .debug_line,"",@progbits