xref: /llvm-project/llvm/test/DebugInfo/Symbolize/ELF/symtab-file-conflict.s (revision 04a2e12612f49e65a7dc14fa45f11f0632d427f2)
1*04a2e126SFangrui Song# REQUIRES: x86-registered-target
2*04a2e126SFangrui Song## If the filename from the preceding STT_FILE does not match .debug_line,
3*04a2e126SFangrui Song## STT_FILE wins. Compilers should not emit such bogus information.
4*04a2e126SFangrui Song# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
5*04a2e126SFangrui Song# RUN: llvm-symbolizer --obj=%t 0 | FileCheck %s
6*04a2e126SFangrui Song
7*04a2e126SFangrui Song# CHECK:       foo
8*04a2e126SFangrui Song# CHECK-NEXT:  1.c:0:0
9*04a2e126SFangrui Song
10*04a2e126SFangrui Song.file "1.c"
11*04a2e126SFangrui Song.file 0 "/tmp" "0.c"
12*04a2e126SFangrui Songfoo:
13*04a2e126SFangrui Song  .loc 0 1 0
14*04a2e126SFangrui Song  nop
15