36 lines · plain
1REQUIRES: x86-registered-target2RUN: split-file %s %t3RUN: mkdir -p %t/.build-id/ab4RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t/asm.s \5RUN: -o %t/.build-id/ab/cdef.debug6RUN: llvm-symbolizer --debug-file-directory=%t --filter-markup < %t/input \7RUN: > %t.output 2> %t.err8RUN: FileCheck %s --input-file=%t.output --match-full-lines \9RUN: --implicit-check-not {{.}}10RUN: FileCheck %s --check-prefix=ERR --input-file=%t.err --match-full-lines11 12CHECK: [[BEGIN:\[{3}]]ELF module #0x0 "a.o"; BuildID=abcdef [0x0-0x4](r),[0x10-0x11](r)[[END:\]{3}]]13CHECK: long long byte14CHECK: long byte15CHECK: [[BEGIN]]data:0x5[[END]]16 17ERR: error: expected 1 field(s); found 018ERR: error: no mmap covers address19 20;--- input21{{{module:0:a.o:elf:abcdef}}}22{{{mmap:0:5:load:0:r:0}}}23{{{mmap:0x10:2:load:0:r:0x3}}}24{{{data:0x0}}} {{{data:0x1}}} {{{data:0x4}}}25{{{data:0x10}}} {{{data:0x11}}}26 27{{{data}}}28{{{data:0x5}}}29;--- asm.s30long:31 .long 0x1122334432 .size long, 433byte:34 .byte 0x4235 .size byte, 136