File: accel-imported-declarations.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 (80 lines) | stat: -rw-r--r-- 2,630 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
RUN: dsymutil --linker parallel -accelerator=Dwarf \
RUN:   -oso-prepend-path=%p/../../Inputs \
RUN:   %p/../../Inputs/accel-imported-declaration.macho-arm64 -o %t.dwarf.dSYM
RUN: dsymutil --linker parallel -accelerator=Apple \
RUN:   -oso-prepend-path=%p/../../Inputs \
RUN:   %p/../../Inputs/accel-imported-declaration.macho-arm64 -o %t.apple.dSYM

RUN: llvm-dwarfdump -v %t.dwarf.dSYM | FileCheck %s -check-prefixes=DWARF,COMMON
RUN: llvm-dwarfdump -v %t.apple.dSYM | FileCheck %s -check-prefixes=APPLE,COMMON

COMMON: .debug_info contents
COMMON: DW_TAG_compile_unit
COMMON: DW_AT_name{{.*}}"__artificial_type_unit"
COMMON: DW_TAG_base_type
COMMON: DW_AT_name{{.*}}"int"
COMMON: DW_TAG_namespace
COMMON: DW_AT_name{{.*}}"A"
COMMON: DW_TAG_namespace
COMMON: DW_AT_name{{.*}}"B"
COMMON: 0x[[NAMESPACE_C_1:[0-9a-f]*]]: DW_TAG_namespace
COMMON: DW_AT_name{{.*}}"C"
COMMON-NOT: DW_TAG_variable
COMMON: 0x[[NAMESPACE_C_2:[0-9a-f]*]]: DW_TAG_imported_declaration
COMMON: DW_AT_import{{.*}}[[NAMESPACE_C_1]]
COMMON: DW_AT_name{{.*}}"C"
COMMON: DW_TAG_imported_module
COMMON: DW_AT_import{{.*}}[[NAMESPACE_C_1]]


COMMON: DW_TAG_compile_unit
COMMON: {{.*}}DW_TAG_namespace
COMMON:   DW_AT_name{{.*}}"A"
COMMON: {{.*}}DW_TAG_namespace
COMMON:   DW_AT_name{{.*}}"B"
COMMON: 0x[[NAMESPACE_C_3:[0-9a-f]*]]: DW_TAG_namespace
COMMON:   DW_AT_name{{.*}}"C"
COMMON: 0x[[VAR_A:[0-9a-f]*]]: DW_TAG_variable
COMMON: DW_TAG_imported_declaration
COMMON:   DW_AT_import{{.*}}[[VAR_A]]

DWARF:      .debug_names contents:
DWARF:      Bucket 0 [
DWARF-NEXT:   Name {{.*}} {
DWARF-NEXT:     Hash: {{.*}}
DWARF-NEXT:     String: {{.*}} "C"
DWARF-NEXT:     Entry {{.*}} {
DWARF-NEXT:       Abbrev: {{.*}}
DWARF-NEXT:       Tag: DW_TAG_namespace
DWARF:       DW_IDX_die_offset: 0x0000002f
DWARF-NEXT:     }
DWARF-NEXT:     Entry {{.*}} {
DWARF-NEXT:       Abbrev: {{.*}}
DWARF:       Tag: DW_TAG_imported_declaration
DWARF:       DW_IDX_die_offset: 0x00000035
DWARF-NEXT:     }
DWARF-NEXT:     Entry {{.*}} {
DWARF-NEXT:       Abbrev: {{.*}}
DWARF-NEXT:       Tag: DW_TAG_namespace
DWARF:       DW_IDX_die_offset: 0x0000003c
DWARF-NEXT:     }

DWARF-NEXT:   }

APPLE:      .apple_namespaces contents:
APPLE:      Bucket 1 [
APPLE-NEXT:   Hash {{.*}} [
APPLE-NEXT:     Name@{{.*}} {
APPLE-NEXT:       String: {{.*}} "C"
APPLE-NEXT:       Data 0 [
APPLE-NEXT:         Atom[0]: 0x[[NAMESPACE_C_1]]
APPLE-NEXT:       ]
APPLE-NEXT:       Data 1 [
APPLE-NEXT:         Atom[0]: 0x[[NAMESPACE_C_2]]
APPLE-NEXT:       ]
APPLE-NEXT:       Data 2 [
APPLE-NEXT:         Atom[0]: 0x[[NAMESPACE_C_3]]
APPLE-NEXT:       ]
APPLE:          }
APPLE-NEXT:   ]
APPLE-NEXT: ]