content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// RUN: %target-typecheck-verify-swift -swift-version 4\n// RUN: %target-typecheck-verify-swift -swift-version 4.2\n\npublic protocol PublicProtoWithReqs {\n associatedtype Assoc\n func foo()\n}\n\n@usableFromInline struct UFIAdopter<T> : PublicProtoWithReqs {}\n// expected-warning@-1 {{type alias 'Assoc' must be dec... | dataset_sample\swift\apple_swift\test\Compatibility\attr_usableFromInline_protocol.swift | attr_usableFromInline_protocol.swift | Swift | 2,286 | 0.95 | 0 | 0.3 | node-utils | 9 | 2024-07-29T21:05:08.976389 | MIT | true | 036dc76987ad2edf673bf3ffa388b264 |
// RUN: %target-typecheck-verify-swift -swift-version 4 -disable-objc-attr-requires-foundation-module -enable-objc-interop\n// RUN: %target-typecheck-verify-swift -enable-testing -swift-version 4 -disable-objc-attr-requires-foundation-module -enable-objc-interop\n\n@usableFromInline private func privateVersioned() {}\n... | dataset_sample\swift\apple_swift\test\Compatibility\attr_usableFromInline_swift4.swift | attr_usableFromInline_swift4.swift | Swift | 3,769 | 0.95 | 0.054264 | 0.135417 | vue-tools | 371 | 2024-11-05T06:41:59.152508 | Apache-2.0 | true | 6679cc23259941bfb51682861f1902c7 |
// RUN: %target-typecheck-verify-swift -swift-version 4.2 -disable-objc-attr-requires-foundation-module -enable-objc-interop\n// RUN: %target-typecheck-verify-swift -enable-testing -swift-version 4.2 -disable-objc-attr-requires-foundation-module -enable-objc-interop\n\n@usableFromInline private func privateVersioned() ... | dataset_sample\swift\apple_swift\test\Compatibility\attr_usableFromInline_swift42.swift | attr_usableFromInline_swift42.swift | Swift | 6,147 | 0.95 | 0.053691 | 0.284483 | node-utils | 555 | 2024-05-22T03:51:30.866884 | GPL-3.0 | true | b4ef0aa656e026a8d822249ecf891d7a |
// RUN: %target-swift-frontend -typecheck -parse-as-library %s -verify -swift-version 4\n\n// Default initialization of variables -- totally broken Swift 4 behavior.\n\nclass NotInitializableOptionalClass {\n var opt: Optional<Int>\n var empty: Void\n}\n\nstruct NotInitializableOptionalStruct {\n var opt: Optional<I... | dataset_sample\swift\apple_swift\test\Compatibility\default_init.swift | default_init.swift | Swift | 442 | 0.95 | 0.055556 | 0.142857 | python-kit | 104 | 2024-11-22T23:49:11.966455 | BSD-3-Clause | true | 1e8cab77f4954d27c702a50eddee99ac |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\n// ----------------------------------------------------------------------------\n// Semi-bogus factory init pattern -- Swift 4 permitted this for non-final\n// classes, which is unsound, but swift-corelibs-foundation made use of\n// this, so possibly there are ... | dataset_sample\swift\apple_swift\test\Compatibility\dynamic_self_swift4.swift | dynamic_self_swift4.swift | Swift | 729 | 0.95 | 0.125 | 0.368421 | vue-tools | 69 | 2025-06-18T23:35:47.758069 | GPL-3.0 | true | 89ebf9ff29916c1d95a81ac324d30010 |
// RUN: %target-typecheck-verify-swift -swift-version 4 -enable-library-evolution\n\nfunc foo(a: Int?, b: Int?) -> Int {\n switch (a, b) {\n case (.none, _): return 1\n case (_, .none): return 2\n case (.some(_), .some(_)): return 3\n }\n \n switch (a, b) {\n case (.none, _): return 1\n case (_, .none): retu... | dataset_sample\swift\apple_swift\test\Compatibility\exhaustive_switch.swift | exhaustive_switch.swift | Swift | 31,519 | 0.95 | 0.128954 | 0.06397 | vue-tools | 947 | 2023-12-30T22:32:05.478128 | GPL-3.0 | true | 9bb8fdcd1a1854f494563e27f28ff1a7 |
// RUN: %target-typecheck-verify-swift -swift-version 6 -enable-library-evolution\n\nenum OverlyLargeSpaceEnum {\n case case0\n case case1\n case case2\n case case3\n case case4\n case case5\n case case6\n case case7\n case case8\n case case9\n case case10\n case case11\n}\n\nfunc testSwitch() -> Bool {\n ... | dataset_sample\swift\apple_swift\test\Compatibility\exhaustive_switch_swift_6.swift | exhaustive_switch_swift_6.swift | Swift | 1,880 | 0.8 | 0.076923 | 0.065574 | vue-tools | 568 | 2024-02-28T06:07:59.522944 | GPL-3.0 | true | 2f4417e57546a6591e346b8ab91685bd |
// RUN: %target-run-simple-swift | %FileCheck %s\n\n// REQUIRES: executable_test\n\n// https://github.com/apple/swift/issues/53611\n// Even though we test that type-checking and exhaustiveness checking work fine\n// in the presence of implicit tupling/untupling in exhaustive_switch.swift,\n// make sure that the "patche... | dataset_sample\swift\apple_swift\test\Compatibility\implicit_tupling_untupling_codegen.swift | implicit_tupling_untupling_codegen.swift | Swift | 4,580 | 0.8 | 0.138158 | 0.219512 | react-lib | 287 | 2024-01-26T08:19:03.390149 | MIT | true | bd202530838ecaf475c57174a3a24df1 |
// RUN: %target-typecheck-verify-swift\n\nfunc foo() {\n // Okay to reference a type declared later in the same function.\n _ = Visitor()\n struct Visitor { }\n}\n | dataset_sample\swift\apple_swift\test\Compatibility\local_types.swift | local_types.swift | Swift | 159 | 0.95 | 0.142857 | 0.333333 | vue-tools | 952 | 2024-05-08T01:49:08.856482 | MIT | true | f8579edb177cb0b979e98c5c0816e9b6 |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\n// Make sure an r-value coercion is performed on the argument in Swift 4 mode.\nvar x: Int = 1\n_ = type(of: x)\n\n | dataset_sample\swift\apple_swift\test\Compatibility\lvalue_typeof.swift | lvalue_typeof.swift | Swift | 168 | 0.8 | 0 | 0.5 | vue-tools | 523 | 2023-09-16T22:22:52.285064 | GPL-3.0 | true | 03187ac87db1d9f416b669f78c3affdc |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\n// expect-no-diagnostics\n\nstruct X { }\n\npostfix func ++(x: X) -> X { return x }\nprefix func ++(x: X) -> X { return x }\npostfix func --(x: X) -> X { return x }\nprefix func --(x: X) -> X { return x }\n | dataset_sample\swift\apple_swift\test\Compatibility\operators.swift | operators.swift | Swift | 255 | 0.8 | 0 | 0.285714 | awesome-app | 571 | 2024-01-10T17:18:32.077598 | GPL-3.0 | true | 0e2c284d4e2a9155cfd439c54f469bcf |
// RUN: %target-typecheck-verify-swift -enable-objc-interop -swift-version 4\n\n@objc protocol Opt {\n @objc optional func f(callback: @escaping () -> ())\n}\n\nclass Conforms : Opt {\n private func f(callback: () -> ()) {} // expected-note {{'f(callback:)' declared here}}\n}\n\nfunc g(x: Conforms) {\n _ = x.f(callb... | dataset_sample\swift\apple_swift\test\Compatibility\optional_visibility.swift | optional_visibility.swift | Swift | 396 | 0.95 | 0.076923 | 0.1 | react-lib | 190 | 2025-03-22T11:06:25.980454 | BSD-3-Clause | true | 6f1dd47ecc6319e061661fa65a98f86e |
// RUN: %target-typecheck-verify-swift -swift-version 4\n// Generate a swift 4 compatible warning if ownership is specified in a protocol\n\nclass SomeClass {}\n\nprotocol P {\n // expected-warning@+1 {{'weak' cannot be applied to a property declaration in a protocol; this is an error in the Swift 5 language mode}}\n ... | dataset_sample\swift\apple_swift\test\Compatibility\ownership_protocol.swift | ownership_protocol.swift | Swift | 1,108 | 0.95 | 0.333333 | 0.533333 | awesome-app | 711 | 2024-03-15T14:24:51.834641 | MIT | true | 775f7a231b4f60b8956a1d9f7fdb6ea3 |
// RUN: %empty-directory(%t)\n// RUN: %{python} %utils/split_file.py -o %t %s\n// RUN: %target-swift-frontend -typecheck -primary-file %t/swift4.swift %t/common.swift -verify -swift-version 4\n\n// BEGIN common.swift\nprotocol P1 {\n static func p1() -> Int\n}\nprotocol P2 {\n static var p2: Int { get }\n}\n\n// BEGI... | dataset_sample\swift\apple_swift\test\Compatibility\protocol_composition.swift | protocol_composition.swift | Swift | 1,759 | 0.95 | 0.102041 | 0.282051 | react-lib | 107 | 2023-09-20T19:30:46.300946 | GPL-3.0 | true | ad0aa9c2dfe2874839b95d2d51c0d544 |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\n// https://github.com/apple/swift/issues/43310\n// In version 4 and earlier all of these should build with no diagnostic.\nclass Mario {\n func getFriend() -> Self { return self }\n func getEnemy() -> Mario { return self }\n}\nclass SuperMario : Mario {\n... | dataset_sample\swift\apple_swift\test\Compatibility\self.swift | self.swift | Swift | 561 | 0.95 | 0.157895 | 0.166667 | node-utils | 641 | 2024-11-30T14:58:25.727071 | BSD-3-Clause | true | 36ac76a7492e17f51e60616634a0b92b |
// RUN: %target-swift-frontend -typecheck %s\n\nfunc __shared() {}\n\nfunc __owned() {}\n\nfunc foo() {\n __shared()\n __owned()\n}\n | dataset_sample\swift\apple_swift\test\Compatibility\shared_owned_identifiers.swift | shared_owned_identifiers.swift | Swift | 125 | 0.8 | 0 | 0.142857 | react-lib | 867 | 2025-06-22T12:40:41.962955 | GPL-3.0 | true | 30ab182e06fd381f6421b7b7f162279c |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\n// https://github.com/apple/swift/issues/44269\n\nenum DayOfTheWeek : Int {\n case monday = 0\n case `inout` = 1\n case `init` = 2\n case friday = 3\n case tuesday = 4\n}\n\nlet _: DayOfTheWeek = DayOfTheWeek.init\n\nlet _: DayOfTheWeek = DayOfTheWeek.`ini... | dataset_sample\swift\apple_swift\test\Compatibility\special_case_name.swift | special_case_name.swift | Swift | 776 | 0.8 | 0.044444 | 0.085714 | python-kit | 345 | 2024-05-11T03:39:01.931854 | MIT | true | 4bb6dd7c2f1db9c2c9c9b8b5670f456f |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\nprotocol P1 {\n static func `init`(_: Int) // expected-note {{protocol requires function 'init' with type '(Int) -> ()'}}\n // expected-note@-1 {{did you mean 'init'?}}\n}\n\nstruct S11 : P1 {\n static func `init`(_: Int) {}\n}\n\nstruct S12 : P1 { // expect... | dataset_sample\swift\apple_swift\test\Compatibility\special_func_name.swift | special_func_name.swift | Swift | 1,350 | 0.95 | 0.08 | 0.052632 | node-utils | 536 | 2024-01-10T04:46:25.265057 | Apache-2.0 | true | 62f624ffe66528bd33b82704b94ffb41 |
// RUN: %target-typecheck-verify-swift\n\nstruct RequiresStrideable<T: Strideable> { }\n\nextension CountableRange {\n func testStrideable() {\n _ = RequiresStrideable<Bound>()\n }\n\n func foo() { }\n}\n\nextension Range {\n func foo() { } // not a redefinition\n}\n\nstruct RequiresHashable<T: Hashable> { }\n\n... | dataset_sample\swift\apple_swift\test\Compatibility\stdlib_generic_typealiases.swift | stdlib_generic_typealiases.swift | Swift | 500 | 0.8 | 0 | 0.05 | vue-tools | 185 | 2024-11-08T15:04:35.461715 | MIT | true | 7cf9df0165738f032bc4799422eb76ce |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -parse -primary-file %s -verify -swift-version 4\n\nclass C<throws> {} // expected-error {{expected an identifier to name generic parameter}}\nprecedencegroup rethrows {} // expected-error {{expected identifier after 'precedencegroup'}}\n | dataset_sample\swift\apple_swift\test\Compatibility\throws_identifier.swift | throws_identifier.swift | Swift | 294 | 0.95 | 0.2 | 0.5 | awesome-app | 690 | 2023-07-16T13:48:39.582103 | Apache-2.0 | true | b9cf091ef6a727c74dbccc21753f6d58 |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\n// https://github.com/apple/swift/issues/49386\n\n// FIXME: Can't overload local functions so these must be top-level\nfunc takePairOverload(_ pair: (Int, Int?)) {}\nfunc takePairOverload(_: () -> ()) {}\n\ndo {\n func takeFn(fn: (_ i: Int, _ j: Int?) -> ()) {... | dataset_sample\swift\apple_swift\test\Compatibility\tuple_arguments_4.swift | tuple_arguments_4.swift | Swift | 1,536 | 0.95 | 0.166667 | 0.222222 | vue-tools | 145 | 2024-09-10T03:14:10.409251 | BSD-3-Clause | true | a1702e65724320cf310b7d434fc022f5 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete -enable-upcoming-feature InferSendableFromCaptures -parse-as-library %s -emit-sil -o /dev/null -verify\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_InferSendableFromCaptures\n\n// some utilities\nfunc thrower() t... | dataset_sample\swift\apple_swift\test\Concurrency\actor_call_implicitly_async.swift | actor_call_implicitly_async.swift | Swift | 21,549 | 0.95 | 0.179661 | 0.297778 | python-kit | 806 | 2025-06-03T20:37:56.248813 | MIT | true | d5eb11b28eeaaa714d81d1ddb48dcde5 |
// RUN: %target-run-simple-swift(-target %target-swift-5.1-abi-triple -enable-actor-data-race-checks -swift-version 5 -strict-concurrency=minimal) | %FileCheck %s\n\n// REQUIRES: executable_test\n// REQUIRES: concurrency\n// REQUIRES: concurrency_runtime\n// UNSUPPORTED: freestanding\n\n@preconcurrency @MainActor\nprot... | dataset_sample\swift\apple_swift\test\Concurrency\actor_data_race_checks_minimal.swift | actor_data_race_checks_minimal.swift | Swift | 705 | 0.95 | 0.027778 | 0.206897 | awesome-app | 261 | 2024-09-06T08:11:47.323301 | GPL-3.0 | true | b414342add25fcafc5e7b73a4f71c5a3 |
// RUN: %target-swift-frontend -parse-as-library -emit-sil -DNEGATIVES -verify %s\n// RUN: %target-swift-frontend -parse-as-library -emit-sil -DNEGATIVES -verify %s -strict-concurrency=targeted\n// RUN: %target-swift-frontend -parse-as-library -emit-sil -DNEGATIVES -verify %s -strict-concurrency=complete\n// RUN: %targ... | dataset_sample\swift\apple_swift\test\Concurrency\actor_defer.swift | actor_defer.swift | Swift | 6,278 | 0.95 | 0.081448 | 0.239583 | awesome-app | 995 | 2024-12-21T15:57:22.260447 | Apache-2.0 | true | 3bfe811cbfc833a8eb1aa7ef0ee6c143 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\actor_derived_conformances.swift | actor_derived_conformances.swift | Swift | 1,712 | 0.8 | 0.307692 | 0.863636 | awesome-app | 154 | 2023-12-13T15:14:54.608359 | BSD-3-Clause | true | 3ebac780fcf2abfec009918bbc59ff09 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\actor_existentials.swift | actor_existentials.swift | Swift | 3,493 | 0.8 | 0 | 0.298507 | vue-tools | 763 | 2024-09-11T04:57:58.325472 | BSD-3-Clause | true | ffe90b7128b7b32a734fd33585a612fb |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -verify-additional-prefix minimal-\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -verify-additional-prefix targeted-complete-tns- -verify-additional-prefix compl... | dataset_sample\swift\apple_swift\test\Concurrency\actor_inout_isolation.swift | actor_inout_isolation.swift | Swift | 13,056 | 0.95 | 0.163522 | 0.321839 | node-utils | 945 | 2023-08-16T08:24:53.924954 | GPL-3.0 | true | c988ed0a07a2fd393e4ad70dbf100b8c |
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/OtherActors.swiftmodule -module-name OtherActors %S/Inputs/OtherActors.swift -target %target-swift-5.1-abi-triple\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/GlobalVariables.swiftmodule -module-name Gl... | dataset_sample\swift\apple_swift\test\Concurrency\actor_isolation.swift | actor_isolation.swift | Swift | 69,850 | 0.75 | 0.045326 | 0.185472 | python-kit | 551 | 2024-12-09T04:54:31.570269 | BSD-3-Clause | true | 1897d0ccf2df711e21e755e8c3237261 |
// RUN: %target-swift-frontend %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend %s -emit-sil -o /dev/null -verify -strict-concurrency=complete\n// RUN: %target-swift-frontend %s -emit-sil -o /dev/null -verify... | dataset_sample\swift\apple_swift\test\Concurrency\actor_isolation_cycle.swift | actor_isolation_cycle.swift | Swift | 1,081 | 0.95 | 0.029412 | 0.241379 | react-lib | 679 | 2024-04-11T11:27:03.375272 | BSD-3-Clause | true | 0e3df67e1c5e983548aa2163f0408d8c |
// RUN: %target-swift-frontend -swift-version 6 -target %target-swift-5.1-abi-triple %s -emit-silgen -o - | %FileCheck %s\n// RUN: %target-swift-frontend -swift-version 6 -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n\n// README: This file contains FileCheck tests that validate that specific S... | dataset_sample\swift\apple_swift\test\Concurrency\actor_isolation_filecheck.swift | actor_isolation_filecheck.swift | Swift | 1,681 | 0.95 | 0.058824 | 0.666667 | node-utils | 266 | 2024-08-23T03:55:10.335927 | MIT | true | 5cf52f82c8c0bd21dbdaa88135888049 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\actor_isolation_objc.swift | actor_isolation_objc.swift | Swift | 3,227 | 0.95 | 0.014085 | 0.301887 | react-lib | 45 | 2023-11-10T04:42:20.502326 | BSD-3-Clause | true | 2d3bf2ee3bd02bb5583fd53a11b64885 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -swift-version 6 -emit-sil -o /dev/null -verify %s\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\nfinal class ImmutablePoint: Sendable {\n let x : Int = 0\n let y : Int = 0\n}\n\nactor SomeActor { }\n\n@globalActor\nstruct SomeGlobalActor {\n ... | dataset_sample\swift\apple_swift\test\Concurrency\actor_isolation_swift6.swift | actor_isolation_swift6.swift | Swift | 4,671 | 0.95 | 0.022222 | 0.192661 | node-utils | 537 | 2023-09-08T13:27:26.472846 | BSD-3-Clause | true | 1747db6608a54aca11b11bbfff0b3f42 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\actor_isolation_unsafe.swift | actor_isolation_unsafe.swift | Swift | 7,474 | 0.95 | 0.110345 | 0.3 | python-kit | 569 | 2024-10-27T02:48:49.812120 | BSD-3-Clause | true | 99b9245730b530a9beed1f61e17d1c90 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete %s -emit-sil -o /dev/null -verify -enable-upcoming-feature RegionBasedIsolation\n\n// REQUI... | dataset_sample\swift\apple_swift\test\Concurrency\actor_keypath_isolation.swift | actor_keypath_isolation.swift | Swift | 4,204 | 0.95 | 0.011111 | 0.089552 | react-lib | 763 | 2023-10-02T18:50:02.462629 | GPL-3.0 | true | 56ea0ca2a9dd66ddc6514ea1ccd8f764 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete -swift-version 6 %s -emit-sil -o /dev/null -verify\n\n// REQUIRES: concurrency\n\nclass Box {\n let size : Int = 0\n}\n\nactor Door {\n let immutable : Int = 0\n let letBox : Box? = nil\n let letDict : [Int : Bo... | dataset_sample\swift\apple_swift\test\Concurrency\actor_keypath_isolation_swift6.swift | actor_keypath_isolation_swift6.swift | Swift | 3,652 | 0.95 | 0.011364 | 0.061538 | python-kit | 553 | 2023-11-25T17:20:17.735869 | BSD-3-Clause | true | 0742638d880763aa7fc8c23883fae4c3 |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/OtherActors.swiftmodule -module-name OtherActors %S/Inputs/OtherActors.swift -target %target-swift-5.1-abi-triple\n\n// RUN: %target-swift-frontend -I %t -target %target-swift-5.1-abi-triple -strict-concurrency=complete -par... | dataset_sample\swift\apple_swift\test\Concurrency\actor_withCancellationHandler.swift | actor_withCancellationHandler.swift | Swift | 1,465 | 0.8 | 0 | 0.243243 | vue-tools | 70 | 2025-04-05T08:22:18.253660 | GPL-3.0 | true | 8e843295d16512e90792e433ee2dbeec |
// RUN: %target-build-swift -swift-version 5 %s -strict-concurrency=complete -Xfrontend -verify\n\n// REQUIRES: concurrency\n// REQUIRES: OS=macosx\n\nclass NonSendableKlass {} // expected-note 3{{class 'NonSendableKlass' does not conform to the 'Sendable' protocol}}\n\n@available(macOS 10.15, *)\nactor MyActor {\n va... | dataset_sample\swift\apple_swift\test\Concurrency\assumeIsolated.swift | assumeIsolated.swift | Swift | 1,154 | 0.95 | 0.060606 | 0.111111 | awesome-app | 478 | 2024-05-12T03:58:49.583902 | MIT | true | 399b6ee7c46ef8091fdf06b221fb009b |
// RUN: %target-swift-frontend -swift-version 6 -emit-silgen -default-isolation MainActor %s | %FileCheck %s\n// RUN: %target-swift-frontend -swift-version 6 -emit-sil -default-isolation MainActor %s -verify\n\n// READ THIS! This test is meant to FileCheck the specific isolation when\n// `-default-isolation` is set to ... | dataset_sample\swift\apple_swift\test\Concurrency\assume_mainactor.swift | assume_mainactor.swift | Swift | 10,389 | 0.95 | 0.018433 | 0.631285 | vue-tools | 463 | 2025-03-19T02:56:22.501027 | Apache-2.0 | true | 84754c49bc7aa14699b5cccbfc8ce007 |
// RUN: %target-swift-frontend -swift-version 6 -emit-sil -default-isolation MainActor %s -verify\n\n// READ THIS! This test is meant to check the specific isolation when\n// `-default-isolation` is set to `MainActor` in combination with validating\n// behavior around explicitly non-Sendable types that trigger type che... | dataset_sample\swift\apple_swift\test\Concurrency\assume_mainactor_typechecker_errors.swift | assume_mainactor_typechecker_errors.swift | Swift | 2,113 | 0.95 | 0.028169 | 0.125 | python-kit | 250 | 2025-06-20T11:32:04.103710 | MIT | true | 34a9321348b3041d9dd95f5df993500c |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=complete\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\nenum PictureData {\n case value(... | dataset_sample\swift\apple_swift\test\Concurrency\async_cancellation.swift | async_cancellation.swift | Swift | 1,476 | 0.8 | 0.034483 | 0.085106 | react-lib | 201 | 2024-09-14T22:56:16.010067 | MIT | true | f2ce483c32e1233b03f7be0b9c9703d0 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\async_computed_property.swift | async_computed_property.swift | Swift | 850 | 0.95 | 0.117647 | 0.5 | vue-tools | 873 | 2023-08-30T18:11:32.046849 | BSD-3-Clause | true | d7d9b9133444b9c70f255813177d0559 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -o /dev/null -verify %s\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -o /dev/null -verify -strict-concurrency=targeted %s\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -o /dev... | dataset_sample\swift\apple_swift\test\Concurrency\async_conformance.swift | async_conformance.swift | Swift | 2,182 | 0.95 | 0.217391 | 0.305556 | python-kit | 43 | 2024-03-01T09:41:30.891023 | GPL-3.0 | true | 01a488c0ebb8b2e8e4457014450dbe99 |
// RUN: %target-swift-frontend -strict-concurrency=complete -dump-ast %s | %FileCheck %s\n// REQUIRES: concurrency, OS=macosx\n\n@available(SwiftStdlib 5.1, *)\nfunc f<S: AsyncSequence>(s: S) async throws {\n // CHECK-NOT: next(isolation:)\n // CHECK: next()\n for try await x in s { }\n}\n | dataset_sample\swift\apple_swift\test\Concurrency\async_for_each_back_deploy.swift | async_for_each_back_deploy.swift | Swift | 284 | 0.8 | 0.222222 | 0.5 | node-utils | 775 | 2025-06-12T13:05:32.162924 | BSD-3-Clause | true | 89683b55821326ae07d3a350f079cae0 |
// RUN: %target-swift-frontend -enable-experimental-concurrency -target %target-swift-5.1-abi-triple -emit-sil -o /dev/null -verify %s\n// RUN: %target-swift-frontend -enable-experimental-concurrency -target %target-swift-5.1-abi-triple -emit-sil -o /dev/null -verify -strict-concurrency=targeted %s\n// RUN: %target-swi... | dataset_sample\swift\apple_swift\test\Concurrency\async_initializer.swift | async_initializer.swift | Swift | 6,240 | 0.95 | 0.090395 | 0.226277 | react-lib | 414 | 2025-01-22T14:48:41.390085 | MIT | true | 3a7ad80a403d1f1d1572f4527f160ac1 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\async_initializer_objc.swift | async_initializer_objc.swift | Swift | 802 | 0.95 | 0.0625 | 0.666667 | react-lib | 1,000 | 2024-07-14T16:51:31.792548 | BSD-3-Clause | true | 6f0a973b324cb1c95a48132318f7beff |
// RUN: %target-swift-frontend -strict-concurrency=complete -emit-sil -o /dev/null %s -verify -disable-availability-checking\n// REQUIRES: concurrency\n\n@available(SwiftStdlib 5.1, *)\nstruct S: AsyncSequence {\n typealias Element = Int\n struct AsyncIterator: AsyncIteratorProtocol {\n mutating func next() async ... | dataset_sample\swift\apple_swift\test\Concurrency\async_iterator_inference.swift | async_iterator_inference.swift | Swift | 3,539 | 0.8 | 0.058252 | 0.0375 | react-lib | 391 | 2024-05-16T17:55:51.477030 | GPL-3.0 | true | 2e7d697a709d6c017514aeb831c38872 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -... | dataset_sample\swift\apple_swift\test\Concurrency\async_let_capture.swift | async_let_capture.swift | Swift | 1,131 | 0.8 | 0 | 0.352941 | vue-tools | 210 | 2023-07-28T15:47:15.784908 | Apache-2.0 | true | fa1158860872c515d081d206a1acc2bd |
// First without any concurrency enabled.\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -verify-additional-prefix without-transferring-\n\n// Then with targeted.\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verif... | dataset_sample\swift\apple_swift\test\Concurrency\async_let_isolation.swift | async_let_isolation.swift | Swift | 1,733 | 0.95 | 0.018182 | 0.195122 | react-lib | 393 | 2024-10-21T08:50:01.222722 | Apache-2.0 | true | 6f37664aa08700daa1db08f0823a34af |
// RUN: %target-swift-frontend -Xllvm -sil-print-types -emit-sil -target %target-swift-5.1-abi-triple -parse-as-library %s | %FileCheck %s --check-prefix=CHECK-SIL\n// RUN: %target-build-swift -target %target-swift-5.1-abi-triple -Xfrontend -parse-as-library %s -o %t_binary\n// RUN: %target-codesign %t_binary\n// RUN:... | dataset_sample\swift\apple_swift\test\Concurrency\async_main.swift | async_main.swift | Swift | 5,563 | 0.95 | 0.032967 | 0.828947 | awesome-app | 39 | 2023-11-02T13:24:00.788358 | GPL-3.0 | true | 91e7321b5cbc2745a8e4c1e88b419b0e |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -parse-as-library %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -parse-as-library %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-sw... | dataset_sample\swift\apple_swift\test\Concurrency\async_main_invalid_global_actor.swift | async_main_invalid_global_actor.swift | Swift | 1,253 | 0.95 | 0.064516 | 0.346154 | vue-tools | 756 | 2024-11-06T04:18:40.541565 | MIT | true | 3f551b8d490f9c1e8265618700ac2f61 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -parse-as-library %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -parse-as-library %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-sw... | dataset_sample\swift\apple_swift\test\Concurrency\async_main_mainactor_isolation.swift | async_main_mainactor_isolation.swift | Swift | 882 | 0.8 | 0 | 0.466667 | node-utils | 421 | 2025-03-30T23:43:16.224592 | MIT | true | 9e804b6ab21cdaa1a3b909f1b352fe4c |
// RUN: %target-typecheck-verify-swift -parse-as-library -target %target-swift-5.1-abi-triple -disable-implicit-concurrency-module-import\n// RUN: %target-typecheck-verify-swift -parse-as-library -target %target-swift-5.1-abi-triple -parse-stdlib\n\n@main struct Main {\n // expected-error@+1:22{{'_Concurrency' module ... | dataset_sample\swift\apple_swift\test\Concurrency\async_main_no_concurrency.swift | async_main_no_concurrency.swift | Swift | 391 | 0.95 | 0.125 | 0.428571 | vue-tools | 385 | 2024-12-26T17:53:40.581329 | Apache-2.0 | true | 66fab26aff188385768681dfcd76d4d6 |
// RUN: %target-typecheck-verify-swift -parse-as-library -target %target-swift-5.1-abi-triple -parse-stdlib\n// expect-no-diagnostics\n\nimport _Concurrency\n\n@main struct Main {\n static func main() async {\n }\n}\n | dataset_sample\swift\apple_swift\test\Concurrency\async_main_no_exit.swift | async_main_no_exit.swift | Swift | 210 | 0.95 | 0 | 0.285714 | awesome-app | 379 | 2024-03-12T04:49:55.037048 | Apache-2.0 | true | 2fb1ce124ad530f98c7b427f617d3a5d |
// This test aims to show that no preference is given to either the async or\n// sync main function. The most specific, valid, main function will be\n// selected if one exists. If two main functions could exist, the usage is\n// ambiguous.\n\n// async main is nested deeper in protocols than sync, use sync\n// sync main... | dataset_sample\swift\apple_swift\test\Concurrency\async_main_resolution.swift | async_main_resolution.swift | Swift | 5,345 | 0.95 | 0.148649 | 0.754098 | awesome-app | 802 | 2023-07-13T20:35:41.346477 | Apache-2.0 | true | c6da468bd02d038cbadb68e2de881c41 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -target %target-swift-5.1-abi-triple -Xfrontend -parse-as-library %s -o %t/main\n// RUN: %target-codesign %t/main\n// RUN: %target-run %t/main > %t/log 2>&1 || true\n// RUN: %FileCheck %s < %t/log\n\n// REQUIRES: concurrency\n// REQUIRES: executable_test\n// R... | dataset_sample\swift\apple_swift\test\Concurrency\async_main_throws_prints_error.swift | async_main_throws_prints_error.swift | Swift | 706 | 0.8 | 0.037037 | 0.590909 | vue-tools | 455 | 2025-03-17T06:35:26.740417 | MIT | true | 3a1bdc0a25f85d08417def100ae5f328 |
// RUN: %target-swift-emit-silgen -parse-as-library -target %target-swift-5.1-abi-triple %s | %FileCheck %s\n\n// REQUIRES: concurrency\n\nstruct Err: Error { }\n\n// CHECK: static func $main() async throws(Err)\n\n// CHECK-LABEL: sil private [ossa] @async_Main : $@convention(thin) @async () -> () {\n// CHECK: [[REPORT... | dataset_sample\swift\apple_swift\test\Concurrency\async_main_typed_error.swift | async_main_typed_error.swift | Swift | 494 | 0.95 | 0 | 0.545455 | vue-tools | 859 | 2024-08-09T18:56:49.925296 | BSD-3-Clause | true | 48420196714fe2889698430139b18cf8 |
// RUN: %target-typecheck-verify-swift -debug-constraints 2>%t.err\n\n// RUN: %FileCheck %s < %t.err\n\n// rdar://77942193 - adding async overload leads to expressions becoming "too complex"\n\nstruct Obj {\n func op<T>(_: T) {}\n func op(_: Int) {}\n}\n\n// Three overloads of `filter_async` to avoid generic overload... | dataset_sample\swift\apple_swift\test\Concurrency\async_overload_filtering.swift | async_overload_filtering.swift | Swift | 918 | 0.8 | 0 | 0.47619 | awesome-app | 87 | 2025-05-26T12:54:12.944964 | MIT | true | e055d5d5cdbe4261600ccd3a4537f86b |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -primary-file %s -dump-ast -o %t.ast.txt\n// RUN: %FileCheck %s < %t.ast.txt\n\n// REQUIRES: concurrency\n\nextension Error {\n func printMe() { }... | dataset_sample\swift\apple_swift\test\Concurrency\async_sequence_existential.swift | async_sequence_existential.swift | Swift | 537 | 0.8 | 0.15 | 0.375 | awesome-app | 542 | 2024-10-04T09:30:45.873276 | GPL-3.0 | true | 77b4cf8fd89498fe3847a5016e022dd3 |
// RUN: %target-swift-frontend -typecheck %s -verify\n\n// REQUIRES: concurrency\n\n@available(SwiftStdlib 5.1, *)\nstruct MyAsyncSequence<Element>: AsyncSequence {\n struct AsyncIterator: AsyncIteratorProtocol {\n mutating func next() -> Element? { nil }\n }\n\n func makeAsyncIterator() -> AsyncIterator { .init(... | dataset_sample\swift\apple_swift\test\Concurrency\async_sequence_flatmap_overloading.swift | async_sequence_flatmap_overloading.swift | Swift | 572 | 0.8 | 0 | 0.125 | vue-tools | 204 | 2025-06-21T03:03:53.241954 | MIT | true | 3119826270a3737716db60a35df3eda2 |
// RUN: %target-swift-frontend -target %target-cpu-apple-macos14.0 %s -emit-sil -o /dev/null -verify -swift-version 6\n\n// REQUIRES: concurrency, OS=macosx\n\nfunc acceptClosure(_: () async throws -> Void) { }\n \n@available(macOS 13.0, *)\nfunc f<S: AsyncSequence>(s: S) async throws {\n acceptClosure {\n if #ava... | dataset_sample\swift\apple_swift\test\Concurrency\async_sequence_macosx.swift | async_sequence_macosx.swift | Swift | 961 | 0.95 | 0.228571 | 0.103448 | awesome-app | 480 | 2023-07-26T07:15:03.636483 | GPL-3.0 | true | 331018babe3358f463f4b71203f77adc |
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify\n\n// REQUIRES: concurrency\n\n// Tests for the use of 'rethrows' on generic functions that have AsyncSequence\n// and AsyncIteratorProtocol requirements.\n\nfunc f1(_ seq: some AsyncSequence) async rethrows {\n for try aw... | dataset_sample\swift\apple_swift\test\Concurrency\async_sequence_rethrows.swift | async_sequence_rethrows.swift | Swift | 2,381 | 0.95 | 0.195402 | 0.138462 | react-lib | 527 | 2024-09-21T19:38:55.166549 | GPL-3.0 | true | 34209634b3f35769ceee8261081b1d60 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\async_sequence_syntax.swift | async_sequence_syntax.swift | Swift | 4,339 | 0.95 | 0.204545 | 0.110092 | awesome-app | 860 | 2025-01-21T21:21:33.358533 | BSD-3-Clause | true | 7a1f62b35a044075aa3d62fe03f50197 |
// RUN: %target-swift-frontend -strict-concurrency=targeted -target %target-swift-5.1-abi-triple %s -o /dev/null -verify -emit-sil -DALLOW_TYPECHECKER_ERRORS -verify-additional-prefix typechecker-\n// RUN: %target-swift-frontend -strict-concurrency=complete -target %target-swift-5.1-abi-triple %s -o /dev/null -verify ... | dataset_sample\swift\apple_swift\test\Concurrency\async_tasks.swift | async_tasks.swift | Swift | 5,469 | 0.95 | 0.148649 | 0.2 | node-utils | 863 | 2023-08-09T03:23:10.371043 | BSD-3-Clause | true | c884a2f1bffd8662189c8724e6af1713 |
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library )\n\n// REQUIRES: executable_test\n// REQUIRES: concurrency\n// REQUIRES: libdispatch\n\n// rdar://76038845\n// REQUIRES: concurrency_runtime\n// UNSUPPORTED: back_deployment_runtime\n// UNSUPPORTED: back_d... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_base_priority.swift | async_task_base_priority.swift | Swift | 4,463 | 0.95 | 0.055556 | 0.241379 | python-kit | 398 | 2024-01-01T23:03:17.264430 | Apache-2.0 | true | 026e63150cdb358e013dd6d8f353f35e |
// RUN: %empty-directory(%t)\n\n// RUN: %target-build-swift %s -Xfrontend -disable-availability-checking -parse-as-library -o %t/async_task_escalate_priority\n// RUN: %target-codesign %t/async_task_escalate_priority\n// RUN: %target-run %t/async_task_escalate_priority\n\n// REQUIRES: VENDOR=apple\n// REQUIRES: executab... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_escalate_priority.swift | async_task_escalate_priority.swift | Swift | 9,191 | 0.95 | 0.028926 | 0.136364 | react-lib | 395 | 2023-10-09T11:20:18.862102 | BSD-3-Clause | true | a4f575d107b3fa54474af5e98103e60f |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_groups.swift | async_task_groups.swift | Swift | 6,768 | 0.95 | 0.147186 | 0.164103 | node-utils | 951 | 2023-11-15T12:15:22.463930 | GPL-3.0 | true | 190af38432020580a1d5c1032e2296a9 |
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-upcoming-feature RegionBasedIsolation\n\n// REQUIRES: concurrency\n// REQUIRES: libdispatch\n// REQUIRES: swift_feature_RegionBasedIsolation\n\n@MainActor\nclass MyActor {\n func check(... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_groups_and_actors.swift | async_task_groups_and_actors.swift | Swift | 882 | 0.95 | 0.111111 | 0.129032 | node-utils | 422 | 2023-09-30T18:31:56.888027 | MIT | true | 6336ea1542aa88603788c3fb85a97682 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=complete\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\n// === OK cases\n\nlet _ = await withTaskGroup { group in\n group.addTask { }\n group.addTask { }\n}\nlet _ = await withThrowingTaskGr... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_groups_and_type_inference.swift | async_task_groups_and_type_inference.swift | Swift | 3,223 | 0.8 | 0.05036 | 0.145299 | awesome-app | 290 | 2024-11-22T17:11:03.645733 | BSD-3-Clause | true | 40e4082bd7ec4d50c0652eb84983df6a |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_groups_as_sequence.swift | async_task_groups_as_sequence.swift | Swift | 1,273 | 0.95 | 0 | 0.611111 | node-utils | 505 | 2024-02-27T08:05:09.805638 | Apache-2.0 | true | 22362752ae19efeeeb73c68514b95118 |
// RUN: %target-swift-frontend -emit-sil -verify -o /dev/null -disable-availability-checking %s -swift-version 6 -strict-concurrency=complete\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\nactor A {\n func g() { }\n func h() throws { }\n \n func f() async throws {\n await withTaskGroup(of: Int.self, return... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_group_body_inherit_isolation.swift | async_task_group_body_inherit_isolation.swift | Swift | 670 | 0.8 | 0.148148 | 0.142857 | react-lib | 547 | 2023-12-11T13:18:16.208786 | GPL-3.0 | true | 43fab2bf952689d2fba1b8eb56deff2f |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -plugin-path %swift-plugin-dir -emit-module -emit-module-path %t/OtherActors.swiftmodule -module-name OtherActors %S/Inputs/OtherActors.swift -target %target-swift-5.1-abi-triple\n\n// RUN: %target-swift-frontend -I %t -plugin-path %swift-plugin-dir -target %... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_locals_basic_warnings.swift | async_task_locals_basic_warnings.swift | Swift | 1,193 | 0.8 | 0 | 0.421053 | awesome-app | 784 | 2023-12-28T07:00:52.389332 | MIT | true | aa41b73ef5e151117e3a03f34ffd5c33 |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -plugin-path %swift-plugin-dir -emit-module -emit-module-path %t/OtherActors.swiftmodule -module-name OtherActors %S/Inputs/OtherActors.swift -target %target-swift-5.1-abi-triple\n\n// RUN: %target-swift-frontend -I %t -plugin-path %swift-plugin-dir -target %... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_locals_basic_warnings_bug_isolation.swift | async_task_locals_basic_warnings_bug_isolation.swift | Swift | 804 | 0.95 | 0.047619 | 0.333333 | awesome-app | 649 | 2024-09-13T09:04:19.980306 | MIT | true | a940444b80f1c27bddf1c35889e04cd7 |
// RUN: %empty-directory(%t)\n\n// RUN: %target-build-swift %s -Xfrontend -disable-availability-checking -parse-as-library -o %t/async_task_priority\n// RUN: %target-codesign %t/async_task_priority\n// RUN: %target-run %t/async_task_priority\n\n// REQUIRES: VENDOR=apple\n// REQUIRES: executable_test\n// REQUIRES: concu... | dataset_sample\swift\apple_swift\test\Concurrency\async_task_priority.swift | async_task_priority.swift | Swift | 11,240 | 0.95 | 0.045455 | 0.168627 | node-utils | 422 | 2024-06-22T04:47:44.746752 | GPL-3.0 | true | 5f16e750429f155a55b1482810092f36 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\async_throwing.swift | async_throwing.swift | Swift | 7,382 | 0.95 | 0.293785 | 0.363636 | awesome-app | 970 | 2024-01-28T16:10:37.367622 | Apache-2.0 | true | 263e5bf2a2a4732dc64527b14c2feb80 |
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple -parse-stdlib\n// expect-no-diagnostics\n\nimport _Concurrency\n\nfunc foo() async {\n}\n\nawait foo()\n | dataset_sample\swift\apple_swift\test\Concurrency\async_top_level_no_exit.swift | async_top_level_no_exit.swift | Swift | 171 | 0.95 | 0 | 0.333333 | python-kit | 410 | 2023-12-05T08:05:56.681740 | Apache-2.0 | true | feddd625934700f84c62383339900603 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /... | dataset_sample\swift\apple_swift\test\Concurrency\attr_discardableResult_async_await.swift | attr_discardableResult_async_await.swift | Swift | 840 | 0.8 | 0 | 0.583333 | python-kit | 527 | 2025-01-20T14:11:23.814278 | GPL-3.0 | true | c4cb5e5cd3bd0216e09bf6bd671b0865 |
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple -parse-as-library\n// REQUIRES: concurrency\n\nfunc asyncFunc() async throws {}\n\nfunc anotherAsyncFunc() async -> Int {\n return 42\n}\n\nfunc async() throws { }\n\n@main struct MyProgram {\n static func main() async throws {\n // expec... | dataset_sample\swift\apple_swift\test\Concurrency\await_typo_correction.swift | await_typo_correction.swift | Swift | 997 | 0.8 | 0.138889 | 0.296296 | vue-tools | 135 | 2023-12-03T18:13:59.399026 | Apache-2.0 | true | 368bcece5d48c56696f0327d7971034c |
// RUN: %target-run-simple-swift(-parse-as-library -target %target-swift-5.1-abi-triple -Xfrontend -concurrency-model=task-to-thread -g -Xlinker -object_path_lto -Xlinker /tmp/abc.o)\n// REQUIRES: concurrency\n// REQUIRES: executable_test\n// REQUIRES: concurrency_runtime\n// REQUIRES: freestanding\n// UNSUPPORTED: thr... | dataset_sample\swift\apple_swift\test\Concurrency\blocking_continuations.swift | blocking_continuations.swift | Swift | 1,951 | 0.95 | 0.015152 | 0.107143 | node-utils | 530 | 2024-10-22T13:45:28.741982 | Apache-2.0 | true | ce3a90d8ee7e6e3ff51cd164f7bd3e6c |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -parse-as-library -enable-builtin-module -Xllvm -sil-print-types -emit-sil -o - | %FileCheck %s\n\n// REQUIRES: concurrency\n\nimport Builtin\n\n@MainActor\nfunc suspend() async {}\n\n// Builtin.hopToActor should generate a mandatory hop_to_executor... | dataset_sample\swift\apple_swift\test\Concurrency\builtin_silgen.swift | builtin_silgen.swift | Swift | 1,600 | 0.95 | 0.121212 | 0.5 | vue-tools | 803 | 2023-08-29T10:56:57.493658 | Apache-2.0 | true | f45ae337833bd465494a7e78f06cf6d9 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=complete\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-upcoming-feature RegionBasedIsolation\n\n// REQUI... | dataset_sample\swift\apple_swift\test\Concurrency\CaseIterableIsolation.swift | CaseIterableIsolation.swift | Swift | 725 | 0.95 | 0 | 0.3125 | python-kit | 476 | 2023-10-03T07:46:00.437047 | MIT | true | 44b5f144432672778d94b2bdf933d3d4 |
// RUN: %target-swift-frontend -dump-ast %s -target %target-swift-5.1-abi-triple -enable-experimental-feature ClosureIsolation | %FileCheck %s\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_ClosureIsolation\n\nfunc acceptClosure<T>(_: () -> T) { }\nfunc acceptSendableClosure<T>(_: @Sendable () -> T) { }\n\nfun... | dataset_sample\swift\apple_swift\test\Concurrency\closure_isolation.swift | closure_isolation.swift | Swift | 2,566 | 0.8 | 0 | 0.542857 | python-kit | 595 | 2023-12-24T21:03:22.251817 | BSD-3-Clause | true | 18526f96cd57424113d3620989f751ef |
// RUN: %target-typecheck-verify-swift -swift-version 5\n// RUN: %target-typecheck-verify-swift -swift-version 5 -strict-concurrency=complete\n// RUN: %target-typecheck-verify-swift -swift-version 6\n\n// rdar://131524246\n\nprotocol P: Sendable {\n typealias Block = @Sendable () -> Void\n var block: Block? { get }\n... | dataset_sample\swift\apple_swift\test\Concurrency\concurrency_attr_inference_on_closures.swift | concurrency_attr_inference_on_closures.swift | Swift | 494 | 0.95 | 0.045455 | 0.235294 | react-lib | 597 | 2024-02-22T02:06:22.154898 | BSD-3-Clause | true | 27a06db2394bd81f79e6665038330a08 |
// RUN: %target-swift-frontend -parse-stdlib -target x86_64-apple-macosx10.14 -typecheck -verify %s\n// RUN: %target-swift-frontend -parse-stdlib -target x86_64-apple-macosx11 -typecheck %s\n// RUN: %target-swift-frontend -parse-stdlib -target x86_64-apple-macosx12 -typecheck %s -DTARGET_MACOS_12\n// REQUIRES: OS=macos... | dataset_sample\swift\apple_swift\test\Concurrency\concurrency_availability.swift | concurrency_availability.swift | Swift | 1,729 | 0.95 | 0.054545 | 0.422222 | node-utils | 603 | 2023-08-10T22:46:54.671499 | BSD-3-Clause | true | c421e968726df8039bf8f68356ffd977 |
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/ShadowsConcur.swiftmodule -module-name ShadowsConcur %S/Inputs/ShadowsConcur.swift\n\n// RUN: %target-swift-frontend -I %t -disable-availability-checking %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -I... | dataset_sample\swift\apple_swift\test\Concurrency\concurrency_module_shadowing.swift | concurrency_module_shadowing.swift | Swift | 1,006 | 0.95 | 0 | 0.533333 | awesome-app | 298 | 2024-06-01T11:28:14.375151 | GPL-3.0 | true | 275104e764d185421a323b99d244430b |
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/GlobalVariables.swiftmodule -module-name GlobalVariables %S/Inputs/GlobalVariables.swift -disable-availability-checking -parse-as-library\n\n// RUN: %target-swift-frontend -I %t -strict-concurrency=complete -parse-as-librar... | dataset_sample\swift\apple_swift\test\Concurrency\concurrency_warnings.swift | concurrency_warnings.swift | Swift | 1,528 | 0.95 | 0.214286 | 0.35 | node-utils | 736 | 2025-03-16T23:54:07.124155 | GPL-3.0 | true | 1610ed1d46f74d1c9ed3c05dcf2032fe |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -enable-experimental-flow-sensitive-concurrent-captures -verify -emit-sil %s -o - >/dev/null\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -enable-experimental-flow-sensitive-concurrent-captures -verify -emit-sil %s -o - >/dev/nu... | dataset_sample\swift\apple_swift\test\Concurrency\concurrentfunction_capturediagnostics.swift | concurrentfunction_capturediagnostics.swift | Swift | 7,399 | 0.95 | 0.022624 | 0.343915 | awesome-app | 756 | 2023-10-15T09:35:30.820294 | MIT | true | b1b8cb1170a4716292eb8830879816a9 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete -parse-as-library %s -emit-sil -o /dev/null -verify -DALLOW_TYPECHECKER_ERRORS -verify-additional-prefix typechecker- -verify-additional-prefix tns-allow-typechecker-\n\n// RUN: %target-swift-frontend -target %target-swift-... | dataset_sample\swift\apple_swift\test\Concurrency\concurrent_value_checking.swift | concurrent_value_checking.swift | Swift | 18,930 | 0.95 | 0.08977 | 0.218421 | react-lib | 663 | 2024-12-05T06:52:36.776016 | MIT | true | 2a93714db490856edf631180ced1ba7e |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete %s -emit-sil -o /dev/null -verify\n\n// REQUIRES: concurrency\n// REQUIRES: objc_interop\n// REQUIRES: asserts\n\nimport Foundation\n\nfinal class A: NSObject, Sendable {\n let x: Int = 5\n}\n\nfinal class B: NSObject, Sen... | dataset_sample\swift\apple_swift\test\Concurrency\concurrent_value_checking_objc.swift | concurrent_value_checking_objc.swift | Swift | 673 | 0.95 | 0.304348 | 0.266667 | python-kit | 332 | 2025-07-04T14:32:49.528466 | BSD-3-Clause | true | 00b4bf48c79ab0332202aa19928c347a |
// RUN: %target-swift-frontend -enable-library-evolution -strict-concurrency=complete %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -enable-library-evolution -strict-concurrency=complete %s -emit-sil -o /dev/null -verify -enable-upcoming-feature RegionBasedIsolation\n\n// REQUIRES: concurrency\n// R... | dataset_sample\swift\apple_swift\test\Concurrency\concurrent_value_inference.swift | concurrent_value_inference.swift | Swift | 3,682 | 0.95 | 0.041958 | 0.105263 | awesome-app | 944 | 2025-02-04T06:57:41.306362 | MIT | true | 5c4000024e5c680e305ccd2a362b0b7e |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/OtherActors.swiftmodule -module-name OtherActors %S/Inputs/OtherActors.swift -target %target-swift-5.1-abi-triple\n// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types -verify -module-name test -I %t -target %target-swif... | dataset_sample\swift\apple_swift\test\Concurrency\cross_module_let_sil.swift | cross_module_let_sil.swift | Swift | 3,024 | 0.95 | 0.042553 | 0.682927 | react-lib | 629 | 2023-10-14T14:09:09.804362 | MIT | true | 81df60133b7e45051b0e70a90c88ecfb |
// RUN: %target-swift-frontend -enable-experimental-move-only %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -enable-experimental-move-only %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -enable-experimental-move-only %s -emit-sil -o /dev/null -verify -... | dataset_sample\swift\apple_swift\test\Concurrency\custom_executor_enqueue_availability.swift | custom_executor_enqueue_availability.swift | Swift | 3,286 | 0.95 | 0.106667 | 0.322034 | react-lib | 44 | 2025-01-25T12:59:56.487312 | MIT | true | 43c804d8a44c6edcced37903e67d3f07 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -o /dev/null -verify %s\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -o /dev/null -verify -strict-concurrency=targeted %s\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -o /dev... | dataset_sample\swift\apple_swift\test\Concurrency\custom_executor_enqueue_deprecation_on_executor_extension.swift | custom_executor_enqueue_deprecation_on_executor_extension.swift | Swift | 1,182 | 0.95 | 0.037037 | 0.5 | awesome-app | 642 | 2023-08-10T07:39:24.211104 | MIT | true | b8f9ac851d6cbddeeb17c22f4a0381e3 |
// RUN: %target-swift-frontend -disable-availability-checking -emit-sil -o /dev/null -verify %s\n// RUN: %target-swift-frontend -disable-availability-checking -emit-sil -o /dev/null -verify -strict-concurrency=targeted %s\n// RUN: %target-swift-frontend -disable-availability-checking -emit-sil -o /dev/null -verify -str... | dataset_sample\swift\apple_swift\test\Concurrency\custom_executor_enqueue_impls.swift | custom_executor_enqueue_impls.swift | Swift | 4,535 | 0.95 | 0.138298 | 0.413333 | vue-tools | 238 | 2024-10-25T14:44:50.929147 | Apache-2.0 | true | 586aa38f374213f00a8996070dfd0877 |
// RUN: %target-swift-frontend -Xllvm -sil-print-types -emit-sil %s -target %target-swift-5.1-abi-triple | %FileCheck %s\n// RUN: %target-swift-frontend -Xllvm -sil-print-types -emit-sil %s -target %target-swift-5.1-abi-triple -strict-concurrency=targeted | %FileCheck %s\n// RUN: %target-swift-frontend -Xllvm -sil-pr... | dataset_sample\swift\apple_swift\test\Concurrency\default_actor_definit.swift | default_actor_definit.swift | Swift | 2,779 | 0.95 | 0.057971 | 0.590164 | python-kit | 665 | 2025-01-01T11:25:54.217046 | MIT | true | 4b88c6ebb919cb4bed865c542b26698c |
// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen -verify %s\n// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen -DSILGEN %s | %FileCheck %s\n// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen -DS... | dataset_sample\swift\apple_swift\test\Concurrency\deinit_isolation.swift | deinit_isolation.swift | Swift | 27,743 | 0.95 | 0.18018 | 0.625 | python-kit | 345 | 2024-08-30T04:29:47.202624 | BSD-3-Clause | true | d92fb3043ceb50095b95feddb53a2d9a |
// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen -verify %s\n\n\n@globalActor final actor FirstActor {\n static let shared = FirstActor()\n}\n\nstruct AS: ~Copyable {\n @FirstActor deinit {} // expected-error {{only classes and actors can have isolated deinit}}\n}\n\n@FirstA... | dataset_sample\swift\apple_swift\test\Concurrency\deinit_isolation_in_value_types.swift | deinit_isolation_in_value_types.swift | Swift | 1,891 | 0.8 | 0 | 0.133333 | react-lib | 158 | 2023-08-16T07:22:34.598356 | GPL-3.0 | true | 732d414d6367583bdfed0ab9fe9517c1 |
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -disable-implicit-string-processing-module-import -target %target-future-triple -parse-as-library -emit-silgen -verify %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -disable-implicit-string-processing-module-import -target %target-future-... | dataset_sample\swift\apple_swift\test\Concurrency\deinit_isolation_objc.swift | deinit_isolation_objc.swift | Swift | 28,871 | 0.95 | 0.179487 | 0.630303 | awesome-app | 500 | 2024-07-02T10:00:26.443063 | GPL-3.0 | true | ef4358fe0f5f35401717d9450aa6148e |
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -disable-availability-checking -emit-ir %s | %FileCheck %s\n\n\npublic class Foo {\n @MainActor\n deinit {}\n}\n\n// CHECK: @"$s20deinit_isolation_tbd3FooCfZ"\n// CHECK: @"$s20deinit_isolation_tbd3FooCfD"\n | dataset_sample\swift\apple_swift\test\Concurrency\deinit_isolation_tbd.swift | deinit_isolation_tbd.swift | Swift | 260 | 0.95 | 0.1 | 0.428571 | node-utils | 621 | 2024-08-04T22:49:19.905467 | Apache-2.0 | true | 94ddb98fea9d724475dee449abc5aedb |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete -parse-as-library %s -emit-sil -o /dev/null -verify -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -strict-concurrency=complete -parse-as-libr... | dataset_sample\swift\apple_swift\test\Concurrency\derived_conformances_nonisolated.swift | derived_conformances_nonisolated.swift | Swift | 1,508 | 0.95 | 0.037736 | 0.204545 | node-utils | 708 | 2023-10-24T09:43:51.382756 | GPL-3.0 | true | 3788e1a17cdbc10a9167d9cb65654130 |
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %import-libdispatch -strict-concurrency=complete %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %import-libdispatch -strict-concurrency=complete %s -emit-sil -o /dev/n... | dataset_sample\swift\apple_swift\test\Concurrency\dispatch_inference.swift | dispatch_inference.swift | Swift | 1,504 | 0.95 | 0 | 0.228571 | python-kit | 550 | 2024-03-18T17:49:20.382889 | MIT | true | a19e93d730aa5ac6d4ca6959e021ea01 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.