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.
15 lines
626 B
Swift
15 lines
626 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -I %t -emit-ir -target %target-swift-5.1-abi-triple -enable-library-evolution %s | %IRGenFileCheck %s
|
|
// REQUIRES: concurrency
|
|
|
|
// CHECK: @"$s13default_actor1ACMn" = hidden constant
|
|
// 0x81800050: 0x01800000 IsActor + IsDefaultActor
|
|
// 0x81810050: the same, but using a singleton metadata initialization
|
|
// CHECK-SAME: i32 {{-2122317744|-2122252208}},
|
|
|
|
// CHECK-LABEL: define hidden swiftcc void @"$s13default_actor1ACfD"(ptr swiftself %0)
|
|
// CHECK-NOT: ret void
|
|
// CHECK: call swiftcc void @swift_defaultActor_deallocate(
|
|
// CHECK: ret void
|
|
actor A {}
|