mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
PE/COFF does not support weak linking semantics. Disable the tests until we can emulate the required behaviour. This will allow us to enable running the validation test suite on Windows in the mean time.
27 lines
560 B
Swift
27 lines
560 B
Swift
// RUN: %target-resilience-test --backward-deployment
|
|
// REQUIRES: executable_test
|
|
|
|
// Use swift-version 4.
|
|
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
|
|
|
|
// SR-10913
|
|
// UNSUPPORTED: OS=windows-msvc
|
|
|
|
import StdlibUnittest
|
|
import backward_deploy_top_level
|
|
|
|
|
|
var BackwardDeployTopLevelTest = TestSuite("BackwardDeployTopLevel")
|
|
|
|
BackwardDeployTopLevelTest.test("TopLevel") {
|
|
if getVersion() == 1 {
|
|
topLevelFunction(storedGlobal)
|
|
topLevelFunction(computedGlobal)
|
|
|
|
storedGlobal += 1
|
|
computedGlobal += 1
|
|
}
|
|
}
|
|
|
|
runAllTests()
|