mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
502 B
Swift
24 lines
502 B
Swift
// RUN: %target-resilience-test --backward-deployment
|
|
// REQUIRES: executable_test
|
|
|
|
// https://github.com/apple/swift/issues/53303
|
|
// 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()
|