mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Some cases of using isSuperset can cause crashes, this was caused by improper subclassing callouts; this pr resolves those failures (and provides unit tests for that case) The cases where the bridge was traversed too much now only causes a single bridge out call (without needing to reallocate or thrash retain/release) String.components(separatedBy: CharacterSet) should be considerably faster now not only for more apporpriate bridging calls but also no longer needing to bridge arrays back and forth. Resolves the following issues: rdar://problem/17281998 rdar://problem/26611771 rdar://problem/29738989
18 lines
1.2 KiB
Swift
18 lines
1.2 KiB
Swift
// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/SDK/Foundation/*.swift %T/../../../stdlib/public/SDK/Foundation/8/*.swift -emit-module-path %t.1.swiftmodule
|
|
// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/SDK/Foundation/*.swift %T/../../../stdlib/public/SDK/Foundation/8/*.swift -emit-module-path %t.2.swiftmodule
|
|
// RUN: diff <(llvm-bcanalyzer -dump %t.1.swiftmodule | sed -e 's/\.[0-9]\.swiftmodule/\.x\.swiftmodule/g') <(llvm-bcanalyzer -dump %t.2.swiftmodule | sed -e 's/\.[0-9]\.swiftmodule/\.x\.swiftmodule/g')
|
|
|
|
// REQUIRES: sr4342
|
|
// REQUIRES: objc_interop
|
|
// REQUIRES: PTRSIZE=64
|
|
|
|
// Compiling the same set of files twice, without modifying them (and without
|
|
// generating inlineable SIL) should produce the same swiftmodule. We don't
|
|
// promise more than that at this time...
|
|
|
|
// This test (and Foundation-determinism-wmo.swift) are known to be rather
|
|
// brittle, since they refer directly to sources in stdlib/public/ as well as
|
|
// gyb outputs in the build folder, and assume the Apple Foundation overlay can
|
|
// be built with a relatively simple command line. If it ever breaks, feel free
|
|
// to just disable it and file an SR.
|