llvm/llvm/test/tools/dsymutil/ARM/accel-imported-declarations.test

RUN: dsymutil -accelerator=Dwarf -oso-prepend-path=%p/../Inputs %p/../Inputs/accel-imported-declaration.macho-arm64 -o %t.dwarf.dSYM
RUN: dsymutil -accelerator=Apple -oso-prepend-path=%p/../Inputs %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_namespace
COMMON:   DW_AT_name{{.*}}"A"
COMMON: {{.*}}DW_TAG_namespace
COMMON:   DW_AT_name{{.*}}"B"
COMMON: [[NAMESPACE:0x[0-9a-f]*]]:{{.*}}DW_TAG_namespace
COMMON:   DW_AT_name{{.*}}"C"
COMMON: 0x0000005c:{{.*}}DW_TAG_imported_declaration
COMMON:   DW_AT_name{{.*}}"C"

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: [[NAMESPACE]]
DWARF-NEXT:  DW_IDX_parent: Entry @ 0x{{.*}}
DWARF-NEXT:     }
DWARF-NEXT:     Entry {{.*}} {
DWARF-NEXT:       Abbrev: {{.*}}
DWARF:       Tag: DW_TAG_imported_declaration
DWARF:       DW_IDX_die_offset: 0x0000005c
DWARF-NEXT:  DW_IDX_parent: Entry @ 0x{{.*}}
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]: [[NAMESPACE]]
APPLE-NEXT:       ]
APPLE-NEXT:       Data 1 [
APPLE-NEXT:         Atom[0]: {{0x0000005c|0x0000006f}}
APPLE-NEXT:       ]
APPLE:          }
APPLE-NEXT:   ]
APPLE-NEXT: ]