[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / DebugInfo / accel-imported-declaration.test
blobbe9dd9a884e04f371ddc630d2be8d68f2a149544
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:
19 CHECK:      Bucket 1 [
20 CHECK-NEXT:   Hash {{.*}} [
21 CHECK-NEXT:     Name{{.*}} {
22 CHECK-NEXT:       String: {{.*}} "C"
23 CHECK-NEXT:       Data 0 [
24 CHECK-NEXT:         Atom[0]: [[NAMESPACE]]
25 CHECK-NEXT:       ]
26 CHECK-NEXT:       Data 1 [
27 CHECK-NEXT:         Atom[0]: [[IMPORTED]]
28 CHECK-NEXT:       ]
29 CHECK-NEXT:     }
30 CHECK-NEXT:   ]
31 CHECK-NEXT: ]
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.