1 RUN: llvm-dwarfdump -v %p/Inputs/accel-imported-declaration.macho-arm64.o | FileCheck %s
2 RUN: llvm-dwarfdump -verify %p/Inputs/accel-imported-declaration.macho-arm64.o | FileCheck %s --check-prefix=VERIFY
4 Gather some DIE indexes to verify the accelerator table contents.
6 CHECK: .debug_info contents
7 CHECK: {{.*}}DW_TAG_namespace
8 CHECK: DW_AT_name{{.*}}"A"
9 CHECK: {{.*}}DW_TAG_namespace
10 CHECK: DW_AT_name{{.*}}"B"
11 CHECK: [[NAMESPACE:0x[0-9a-f]*]]:{{.*}}DW_TAG_namespace
12 CHECK: DW_AT_name{{.*}}"C"
13 CHECK: [[IMPORTED:0x[0-9a-f]*]]:{{.*}}DW_TAG_imported_declaration
14 CHECK: DW_AT_name{{.*}}"C"
16 Check that the .apple_namespaces section contains two entries for "namespace C"
18 CHECK: .apple_namespaces contents:
20 CHECK-NEXT: Hash {{.*}} [
21 CHECK-NEXT: Name{{.*}} {
22 CHECK-NEXT: String: {{.*}} "C"
24 CHECK-NEXT: Atom[0]: [[NAMESPACE]]
27 CHECK-NEXT: Atom[0]: [[IMPORTED]]
33 VERIFY: Verifying .apple_names...
34 VERIFY-NEXT: Verifying .apple_types...
35 VERIFY-NEXT: Verifying .apple_namespaces...
36 VERIFY-NEXT: Verifying .apple_objc...
37 VERIFY-NEXT: No errors.