xref: /llvm-project/llvm/test/tools/dsymutil/ARM/inline-source.test (revision f1fdfe6888f93b9f6dfb4689e1f3206de584ff5b)
1# RUN: rm -rf %t
2# RUN: mkdir -p %t
3# RUN: llc -filetype=obj -mtriple arm64-apple-darwin %p/../Inputs/inline.ll -o %t/inline.o
4# RUN: dsymutil -f -oso-prepend-path=%t -y %s -o - | llvm-dwarfdump -debug-line - | FileCheck %s
5# RUN: dsymutil --linker=parallel -f -oso-prepend-path=%t -y %s -o - | llvm-dwarfdump -debug-line - | FileCheck %s
6
7# Test inline source files.
8
9---
10triple:          'arm64-apple-darwin'
11objects:
12  - filename: inline.o
13    symbols:
14      - { sym: _f, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }
15...
16
17# CHECK: .debug_line contents:
18# CHECK: file_names[  1]:
19# CHECK-NEXT: name: "inlined.c"
20# CHECK-NEXT: dir_index: 1
21# CHECK-NEXT: source: "{{.*}}This is inline source code.
22