Files
swift-mirror/test/DebugInfo/overlay-import.swift
Adrian Prantl ba4c82d87e Store Clang module imports in addition to Swift overlay.
This helps the debugger resolve types in the underlying Clang module.

<rdar://problem/69393097>
2020-09-23 13:53:55 -07:00

9 lines
372 B
Swift

// RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
// REQUIRES: OS=macosx
import Foundation
let n = Notification(name: Notification.Name(rawValue: "test"))
// Test that a skeleton CU for the Foundation module is emitted even though we are only using the overlay!
// CHECK: !DICompileUnit(language: DW_LANG_ObjC, {{.*}}Foundation{{.*}}.pcm", {{.*}}dwoId: