mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Doing so is safe even though we have mock SDK. The include paths for modules with the same name in the real and mock SDKs are different, and the module files will be distinct (because they will have a different hash). This reduces test runtime on OS X by 30% and brings it under a minute on a 16-core machine. This also uncovered some problems with some tests -- even when run for iOS configurations, some tests would still run with macosx triple. I fixed the tests where I noticed this issue. rdar://problem/19125022 Swift SVN r23683
13 lines
427 B
Swift
13 lines
427 B
Swift
// RUN: rm -rf %t && mkdir %t
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/generic_shared_function_helper.sil -module-name SILSource
|
|
// RUN: %target-swift-frontend -emit-module -o %t -I %t -primary-file %s -module-name main -sil-link-all
|
|
|
|
// Just don't crash when using -primary-file and re-serializing a
|
|
// generic shared_external SIL function.
|
|
|
|
import SILSource
|
|
|
|
public func main() {
|
|
public_func() as Int?
|
|
}
|