Files
swift-mirror/test/IRGen/async/default_actor.swift
Allan Shortlidge cb578172ea Tests: Remove -disable-availability-checking in more tests that use concurrency.
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.
2024-10-19 12:35:20 -07:00

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 {}