Files
swift-mirror/test/Serialization/distributed.swift
Konrad `ktoso` Malawski cee89ec541 [Distributed] DistributedActorSystem renaming and redesign (#40387)
* [Distributed] towards DistributedActorSystem; synthesize the id earlier, since Identifiable.id

* Fix execute signature to what Pavel is working with

* funcs are ok in sil

* fixed lifetime of id in inits

* fix distributed_actor_deinit

* distributed_actor_local

* update more tests

fixing tests

fix TBD test

fix Serialization/distributed

fix irgen test

Fix null pointer crashes

* prevent issues with null func ptrs and fix Distributed prorotocol test

* fix deinit sil test
2021-12-13 11:29:25 +09:00

26 lines
1.3 KiB
Swift

// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t-scratch)
// RUN: echo "---- STEP 1 ---------------------------------------------------"
// RUN: %target-swift-frontend -emit-module -o %t-scratch/def_distributed~partial.swiftmodule -primary-file %S/Inputs/def_distributed.swift -module-name def_distributed -disable-availability-checking -enable-experimental-distributed
// RUN: echo "---- STEP 2 ---------------------------------------------------"
// RUN: %target-swift-frontend -merge-modules -emit-module -parse-as-library -enable-testing %t-scratch/def_distributed~partial.swiftmodule -module-name def_distributed -o %t/def_distributed.swiftmodule -disable-availability-checking -enable-experimental-distributed
// RUN: echo "---- STEP 3 ---------------------------------------------------"
// RUN: %target-swift-frontend -typecheck -I%t -verify %s -verify-ignore-unknown -disable-availability-checking -enable-experimental-distributed
// REQUIRES: concurrency
// REQUIRES: distributed
import _Distributed
import def_distributed
func testDoSomethingDistributed(system: FakeActorSystem) {
let _: DA = DA(system: system)
}
extension DA {
@_dynamicReplacement(for:_remote_doSomethingDistributed(param:))
func _impl_doSomethingDistributed(param: String) async throws -> Int {
return 2222
}
}