mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use the `%target-swift-5.1-abi-triple` substitution to compile the tests for deployment to the minimum OS versions required for use of _Concurrency APIs, instead of disabling availability checking.
10 lines
251 B
Swift
10 lines
251 B
Swift
// RUN: %target-swift-frontend -primary-file %s -target %target-swift-5.1-abi-triple -c -o /dev/null -O -disable-llvm-optzns
|
|
|
|
// REQUIRES: concurrency
|
|
|
|
// Check that -disable-llvm-optzns does not crash the compiler
|
|
|
|
func testit() async {
|
|
print(1)
|
|
}
|