Files
swift-mirror/test/DebugInfo/InlineBridgingHeader.swift
Adrian Prantl 10004edf49 Leave skeleton CU breadcrumbs fo imported Clang modules in the debug info.
This allows the debugger to look up Clang-imported type definitions in
the correct module.
2019-01-08 16:57:14 -08:00

13 lines
520 B
Swift

// RUN: %target-swift-frontend \
// RUN: -import-objc-header %S/Inputs/InlineBridgingHeader.h \
// RUN: -emit-ir -g %s -o - | %FileCheck %s
// The Swift CU must come first.
// CHECK: !llvm.dbg.cu = !{![[SWIFT_CU:[0-9]+]], ![[CLANG_CU:[0-9]+]]}
// CHECK: ![[SWIFT_CU]] = distinct !DICompileUnit(language: DW_LANG_Swift
// CHECK: ![[CLANG_CU]] = distinct !DICompileUnit(
// CHECK-SAME: language: {{DW_LANG_ObjC|DW_LANG_C}}
// CHECK: DISubprogram(name: "Foo"{{.*}} unit: ![[CLANG_CU]],
Foo()