mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is required to correctly use the mock SDK when the SDK overlay is built and tested separately. (Otherwise, the mock SDK might not get used, because the overlay SDK options would expand from the %-substitution, appear first on the command line, and shadow the mock SDK in the search path). Swift SVN r25185
17 lines
403 B
Swift
17 lines
403 B
Swift
// Note: this test intentionally uses a private module cache.
|
|
//
|
|
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -verify -module-cache-path %t/clang-module-cache -I %S/Inputs %s
|
|
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
|
|
|
// XFAIL: linux
|
|
|
|
// CHECK: cfuncs{{.*}}.pcm
|
|
|
|
import cfuncs
|
|
|
|
func test_puts(s: String) {
|
|
var i = puts(s) + 32
|
|
}
|