/// Test the -Rmodule-loading flag. // RUN: %empty-directory(%t) /// Create a simple module and interface. // RUN: echo 'public func publicFunction() {}' > %t/TestModule.swift // RUN: %target-swift-frontend -typecheck %t/TestModule.swift -emit-module-interface-path %t/TestModule.swiftinterface -swift-version 5 /// Use -Rmodule-loading in a client and look for the diagnostics output. // RUN: %target-swift-frontend -typecheck %s -I %t -Rmodule-loading 2>&1 | %FileCheck %s import TestModule // CHECK: remark: loaded module from {{.*}}SwiftShims-{{.*}}.pcm // CHECK: remark: loaded module from {{.*}}Swift.swiftmodule{{.*}}.swiftmodule // CHECK: remark: loaded module from {{.*}}TestModule.swiftinterface