Files
swift-mirror/test/Driver/imported_modules_bridging_header.swift
Harlan Haskins 150ad99457 [ModuleInterfaces] Replace 'module file' with 'compiled module'
...only in diagnostics. And make the tests pass.

rdar://49359734
2019-04-11 18:05:09 -07:00

10 lines
690 B
Swift

// RUN: not %target-build-swift -typecheck %s -import-objc-header %S/Inputs/imported_modules/bridging_header.h -I %S/Inputs/imported_modules 2>&1 | %FileCheck %s
// RUN: %target-build-swift -emit-imported-modules %s -o %t.importedmodules -import-objc-header %S/Inputs/imported_modules/bridging_header.h -I %S/Inputs/imported_modules
// RUN: diff %t.importedmodules %S/Inputs/imported_modules/imported_modules_bridging_header.importedmodules
// Confirm that the compiler does look for/find the bad overlay during a normal
// compilation, and thus validate that -emit-imported-modules doesn't.
// CHECK: malformed compiled module: {{.*}}InvalidOverlay.swiftmodule
// REQUIRES: objc_interop