Files
swift-mirror/test/DebugInfo/InlineBridgingHeader.swift
2016-08-10 23:52:02 -07:00

13 lines
491 B
Swift

// RUN: %target-swift-frontend \
// RUN: -import-objc-header %S/Inputs/InlineBridgingHeader.h \
// RUN: -emit-ir -g %s -o - | %FileCheck %s
// REQUIRES: objc_interop
// 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(language: DW_LANG_ObjC
// CHECK: DISubprogram(name: "Foo"{{.*}} unit: ![[CLANG_CU]],
Foo()