Files
swift-mirror/validation-test/Evolution/test_backward_deploy_top_level.swift
2019-03-20 14:34:01 -07:00

24 lines
515 B
Swift

// RUN: %target-resilience-test --backward-deployment
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
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()