File: custom-line-table.test

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (42 lines) | stat: -rw-r--r-- 1,803 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# RUN: dsymutil -oso-prepend-path %p/../Inputs -y %s -f -o - | llvm-dwarfdump - --debug-line | FileCheck %s
#
# RUN: dsymutil --linker parallel -oso-prepend-path %p/../Inputs -y %s -f -o - | llvm-dwarfdump - --debug-line | FileCheck %s

# This test runs dsymutil on an object file with non-standard (as far
# as llvm is concerned) line table settings.

---
triple:          'x86_64-apple-darwin'
objects:
  - filename: basic2-custom-linetable.macho.x86_64.o
    symbols:
      - { sym: _foo, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }

# CHECK: 0x0000000000001000     19      0 {{.*}} is_stmt
# CHECK: 0x0000000000001012     20     14 {{.*}} is_stmt prologue_end
# CHECK: 0x0000000000001015     20     18 {{.*}}
# CHECK: 0x0000000000001017     20     17 {{.*}}
# CHECK: 0x0000000000001019     20     10 {{.*}}
# CHECK: 0x000000000000101e     20     25 {{.*}}
# CHECK: 0x0000000000001026     20     23 {{.*}}
# CHECK: 0x000000000000102b     20     36 {{.*}}
# CHECK: 0x000000000000103c     20     31 {{.*}}
# CHECK: 0x000000000000103e     20      3 {{.*}}
# CHECK: 0x0000000000001046     20      3 {{.*}} end_sequence

      - { sym: _inc, objAddr: 0x0, binAddr: 0x2000, size: 0x12 }

# CHECK: 0x0000000000002000     14      0 {{.*}} is_stmt
# CHECK: 0x0000000000002004     15     10 {{.*}} is_stmt prologue_end
# CHECK: 0x0000000000002013     15      3 {{.*}}
# CHECK: 0x0000000000002015     15      3 {{.*}} end_sequence

      - { sym: _unused1,  objAddr: 0x0, binAddr: 0x3000, size: 0x12 }

# CHECK: 0x0000000000003000     10      0 {{.*}} is_stmt
# CHECK: 0x0000000000003004     11      7 {{.*}} is_stmt prologue_end
# CHECK: 0x000000000000300e     11      3 {{.*}}
# CHECK: 0x0000000000003013     12      1 {{.*}} is_stmt
# CHECK: 0x000000000000301c     12      1 {{.*}} is_stmt end_sequence
...