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 -enable-experimental-feature ABIAttribute\n\n// UNSUPPORTED: OS=windows-msvc\n// REQUIRES: swift_feature_ABIAttribute\n\n@_weakLinked public func f() { }\n\n// @_weakLinked -- banned in @abi\nstruct WeakLinked {\n @abi(@_weakLinked func fn1()) // expected-error {{unused '_weakLin... | dataset_sample\swift\apple_swift\test\attr\attr_weaklinked.swift | attr_weaklinked.swift | Swift | 550 | 0.8 | 0 | 0.307692 | react-lib | 87 | 2024-05-23T05:18:46.212430 | GPL-3.0 | true | 0e6cab62dd462f480e99e941797875d4 |
// RUN: %target-swift-emit-sil -parse-as-library -module-name back_deploy %s -target %target-cpu-apple-xros1.0 -verify\n// RUN: %target-swift-emit-silgen -parse-as-library -module-name back_deploy %s -target %target-cpu-apple-xros1.0 | %FileCheck %s\n\n// REQUIRES: OS=xros\n\n// -- Fallback definition of trivialFunc()\... | dataset_sample\swift\apple_swift\test\attr\back_deployed_attr_func_visionos.swift | back_deployed_attr_func_visionos.swift | Swift | 4,324 | 0.95 | 0.024096 | 0.893333 | python-kit | 782 | 2025-04-25T23:16:03.303408 | BSD-3-Clause | true | 507ae6f11234b1455ec32590475890dd |
// RUN: %target-typecheck-verify-swift -swift-version 5\n\nfunc testNonacceptedClosures() {\n let fn = { @usableFromInline in // expected-error{{attribute @usableFromInline is not supported on a closure}}\n "hello"\n }\n\n let fn2: (Int) -> Int = { @usableFromInline x in // expected-error{{attribute @usableFromI... | dataset_sample\swift\apple_swift\test\attr\closures.swift | closures.swift | Swift | 820 | 0.8 | 0 | 0.105263 | python-kit | 164 | 2024-05-02T05:59:19.237943 | Apache-2.0 | true | 4d23104f40da7585c7a0db911eb17e47 |
// RUN: %target-typecheck-verify-swift\n\n#if hasAttribute(foo)\n@foo(this is gibberish)\n#endif\nstruct S1 { }\n\n@frozen\n#if hasAttribute(foo)\n@foo\n#endif\npublic struct S2 { }\n\n#if hasAttribute(foo)\n@foo\n#endif\n@inlinable\nfunc f1() { }\n\n#if hasAttribute(foo)\n@foo\n#else\n@available(*, deprecated, message... | dataset_sample\swift\apple_swift\test\attr\conditional_attribute.swift | conditional_attribute.swift | Swift | 1,313 | 0.95 | 0.180851 | 0.469136 | node-utils | 223 | 2024-05-06T21:05:35.009252 | Apache-2.0 | true | aaaa3447d692a934f1333f90a172d2c0 |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -swift-version 5 -enable-implicit-dynamic %S/Inputs/dynamicReplacementA.swift -o %t -module-name A\n// RUN: %target-swift-frontend -emit-module -swift-version 5 -enable-implicit-dynamic -c %S/Inputs/dynamicReplacementB.swift -o %t -I %t -module-n... | dataset_sample\swift\apple_swift\test\attr\dynamicReplacement.swift | dynamicReplacement.swift | Swift | 2,895 | 0.95 | 0.195876 | 0.088608 | react-lib | 404 | 2023-10-24T21:59:47.847675 | BSD-3-Clause | true | ec852073463d30c110db70b01f28b679 |
// RUN: %empty-directory(%t)\n// RUN: %target-typecheck-verify-swift -swift-version 5 -enable-objc-interop -enable-library-evolution -enable-implicit-dynamic -I %t\n\nstruct Container {\n var property: Int { return 1 }\n func foo() {}\n}\n\nclass AClass {\n var property: Int { return 1 }\n func foo() {}\n\n @objc ... | dataset_sample\swift\apple_swift\test\attr\dynamicReplacement_library_evolution_implicit_dynamic.swift | dynamicReplacement_library_evolution_implicit_dynamic.swift | Swift | 392 | 0.95 | 0.058824 | 0.166667 | awesome-app | 192 | 2024-06-09T15:41:44.539102 | Apache-2.0 | true | c26bfd6ee9d82e5ed9ce662e4c141664 |
// RUN: %target-typecheck-verify-swift\n\nlet _: (_ v: inout @escaping () -> Void) -> ()\n// expected-error@-1 {{inout expression is implicitly escaping}}{{20-30=}}\n\nfunc m(v: inout @escaping () -> Void) {}\n// expected-error@-1 {{inout expression is implicitly escaping}}{{17-27=}}\n | dataset_sample\swift\apple_swift\test\attr\escaping_inout_arugment.swift | escaping_inout_arugment.swift | Swift | 279 | 0.8 | 0 | 0.6 | react-lib | 524 | 2023-11-21T09:23:11.816518 | MIT | true | aa3b41723b418fc84339dacc3de07200 |
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple\n\n// REQUIRES: concurrency\n\n// FIXME: Bad parser diagnostic on C++ side\nnonisolated(something) func invalidAttr() async {} // expected-error {{cannot find 'nonisolated' in scope}}\n// expected-error@-1 {{cannot find 'something' in scope}}\n... | dataset_sample\swift\apple_swift\test\attr\execution_behavior_attrs.swift | execution_behavior_attrs.swift | Swift | 5,679 | 0.95 | 0.035971 | 0.28972 | node-utils | 654 | 2024-12-31T05:59:31.026697 | Apache-2.0 | true | bb13f53cb3cc0003b016e8817ce9e56a |
// RUN: %target-typecheck-verify-swift -parse-as-library -disable-experimental-parser-round-trip -verify-additional-prefix disabled-\n// RUN: %target-typecheck-verify-swift -parse-as-library -verify-additional-prefix enabled- -enable-experimental-feature ABIAttribute\n\n// REQUIRES: asserts\n\n// This test checks wheth... | dataset_sample\swift\apple_swift\test\attr\feature_requirement.swift | feature_requirement.swift | Swift | 794 | 0.8 | 0.0625 | 0.833333 | react-lib | 724 | 2025-04-28T15:41:18.481009 | Apache-2.0 | true | 8477868ecf9acf6786216076b95e19be |
// RUN: %target-swift-frontend -typecheck -verify %s -disable-availability-checking -package-name myPkg\n// REQUIRES: concurrency\n\nactor SomeActor { }\n\n// -----------------------------------------------------------------------\n// @globalActor attribute itself.\n// -------------------------------------------------... | dataset_sample\swift\apple_swift\test\attr\global_actor.swift | global_actor.swift | Swift | 7,738 | 0.95 | 0.105769 | 0.156627 | vue-tools | 961 | 2025-06-08T02:54:32.225029 | MIT | true | 727f0c89e44d056e4b48c2ff33b48896 |
// RUN: %target-swift-ide-test -skip-deinit=false -print-ast-typechecked -source-filename %s -function-definitions=true -prefer-type-repr=false -print-implicit-attrs=true -explode-pattern-binding-decls=true -swift-version 4 -enable-source-import -I %S/Inputs | %FileCheck %s\n\n// CHECK-LABEL: {{^}}class C {\nclass C {\... | dataset_sample\swift\apple_swift\test\attr\hasInitialValue.swift | hasInitialValue.swift | Swift | 735 | 0.95 | 0.142857 | 0.411765 | node-utils | 271 | 2025-05-05T03:51:08.407512 | GPL-3.0 | true | e3608a48cdbf5848297dc15a63d48add |
// RUN: %target-typecheck-verify-swift\n\n#if !hasAttribute(dynamicCallable)\nBOOM\n#endif\n\n#if hasAttribute(fortran)\nBOOM\n#endif\n\n#if hasAttribute(cobol)\nthis is unparsed junk // expected-error{{consecutive statements on a line must be separated by}}\n#endif\n\n#if hasAttribute(optional)\nModifiersAreNotAttribu... | dataset_sample\swift\apple_swift\test\attr\has_attribute.swift | has_attribute.swift | Swift | 871 | 0.8 | 0.266667 | 0.852941 | vue-tools | 103 | 2024-02-21T03:55:24.417074 | Apache-2.0 | true | 47e35319f88cfdec66132dec020353e1 |
// RUN: %target-swift-frontend -swift-version 5 -enable-implicit-dynamic -I %t -emit-silgen %s | %FileCheck %s\n\n// Make sure that these functions are not implicitly marked dynamic.\n\npublic struct NotImplicitDynamic {\n @inlinable\n public var x : Int {\n// CHECK: sil [serialized] [ossa] @$s16implicit_dynamic18No... | dataset_sample\swift\apple_swift\test\attr\implicit_dynamic.swift | implicit_dynamic.swift | Swift | 1,415 | 0.95 | 0 | 0.22 | python-kit | 677 | 2025-04-09T01:51:49.397552 | BSD-3-Clause | true | e690aeb07a1441b8e1657f9b9c8c42c7 |
// RUN: %target-typecheck-verify-swift\n\nstruct S {}\n\nclass C {}\n\nenum E {}\n\n@_eagerMove // expected-error {{'@_eagerMove' attribute cannot be applied to this declaration}}\ntypealias EagerTuple = (C, C)\n\nfunc foo(@_noEagerMove @_eagerMove _ e: E) {} // expected-error {{'@_eagerMove' and '@_noEagerMove' are al... | dataset_sample\swift\apple_swift\test\attr\lexical.swift | lexical.swift | Swift | 1,569 | 0.95 | 0.017241 | 0.025 | vue-tools | 868 | 2023-08-02T16:35:35.797254 | MIT | true | a755aa12ae06085a707fce920908795f |
// RUN: %target-typecheck-verify-swift -enable-experimental-move-only\n\nstruct S {\n func bar(@_noImplicitCopy s: S) {} // okay\n @_noImplicitCopy func foo(s: S) {} // okay\n @_noImplicitCopy mutating func nopers() {} // expected-error {{'@_noImplicitCopy' attribute can only be applied to local lets and params}}\n}... | dataset_sample\swift\apple_swift\test\attr\noimplicitcopy.swift | noimplicitcopy.swift | Swift | 315 | 0.8 | 0 | 0.166667 | python-kit | 330 | 2025-01-26T08:13:15.935607 | MIT | true | 0a0b133775cd03735fd5a5bb73443147 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -emit-module %S/Inputs/OpenHelpers.swift -o %t/OpenHelpers.swiftmodule\n// RUN: %target-typecheck-verify-swift -I %t\n\nimport OpenHelpers\n\n/**** General structural limitations on open. ****/\n\nopen private class OpenIsNotCompatibleWithPrivate {} // expected-... | dataset_sample\swift\apple_swift\test\attr\open.swift | open.swift | Swift | 6,848 | 0.95 | 0.227586 | 0.078261 | node-utils | 961 | 2024-05-16T02:18:54.800126 | BSD-3-Clause | true | aed2fdd74159361d8de79fb46bc5a780 |
// RUN: %empty-directory(%t)\n// RUN: %target-typecheck-verify-swift -sdk %clang-importer-sdk -I %t\n// REQUIRES: objc_interop\n\nimport Foundation\n\nopen class InvalidOpenExtension {\n open func openMethod() { } // No warning: Pure Swift methods can be open inside the class declaration.\n open var openVar: Int { 3 ... | dataset_sample\swift\apple_swift\test\attr\open_objc.swift | open_objc.swift | Swift | 4,872 | 0.95 | 0.178082 | 0.080645 | node-utils | 41 | 2024-06-07T10:59:09.983768 | GPL-3.0 | true | 863ef8f0acc787a0114c6533d7324b00 |
// RUN: %target-typecheck-verify-swift -swift-version 4\n\nopen class AnOpenClass {\n open let openLet: Int = 1 // expected-warning {{'let' properties are implicitly 'final'; use 'public' instead of 'open'}} {{3-7=public}}\n open static func test() {} // expected-warning {{static declarations are implicitly 'final'; ... | dataset_sample\swift\apple_swift\test\attr\open_swift4.swift | open_swift4.swift | Swift | 689 | 0.95 | 0.181818 | 0.111111 | python-kit | 656 | 2023-10-15T20:41:30.168129 | BSD-3-Clause | true | 99230af1f6488aeadd17f1f596fe4312 |
// RUN: %target-typecheck-verify-swift -swift-version 5\n\nopen class AnOpenClass {\n open let openLet: Int = 1 // expected-error {{'let' properties are implicitly 'final'; use 'public' instead of 'open'}} {{3-7=public}}\n open static func test() {} // expected-error {{static declarations are implicitly 'final'; use ... | dataset_sample\swift\apple_swift\test\attr\open_swift5.swift | open_swift5.swift | Swift | 681 | 0.95 | 0.181818 | 0.111111 | python-kit | 497 | 2024-05-13T16:10:30.078566 | Apache-2.0 | true | cbd81ae1edbf1f5a4fa7df9b7a600ede |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -o %t/disabled_access_control_base.swiftmodule %S/Inputs/disabled_access_control_base.swift\n// RUN: %target-swift-frontend -disable-access-control -I %t -typecheck %s\n\nimport disabled_access_control_base\n\nclass B : A {\n public override var... | dataset_sample\swift\apple_swift\test\attr\override_with_disabled_access_control.swift | override_with_disabled_access_control.swift | Swift | 466 | 0.95 | 0.05 | 0.2 | vue-tools | 490 | 2024-11-11T04:30:48.351187 | MIT | true | 7e9d05686e8fb3da25c1d3e438700235 |
/// Report uses of the package access-level modifier without a package name.\n\n// RUN: %empty-directory(%t)\n// RUN: split-file --leading-lines %s %t\n\n// RUN: %target-swift-frontend -emit-module %t/PackageLib.swift -o %t\n// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t -verify\n// RUN: %target-swift-... | dataset_sample\swift\apple_swift\test\attr\package-modifier-outside-of-package.swift | package-modifier-outside-of-package.swift | Swift | 1,273 | 0.95 | 0 | 0.526316 | python-kit | 826 | 2024-09-14T08:23:06.327130 | MIT | true | 49c9167505b13595c1f483c79aa400e7 |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -enable-private-imports -o %t %S/../Inputs/empty.swift\n// RUN: %target-swift-frontend -typecheck -I %t -I %S/Inputs/custom-modules %s -verify\n\n@_private(sourceFile: "Array.swift") import Swift // expected-error {{module 'Swift' was not compile... | dataset_sample\swift\apple_swift\test\attr\private_import.swift | private_import.swift | Swift | 603 | 0.95 | 0.111111 | 0.428571 | vue-tools | 902 | 2025-04-07T08:45:24.210025 | GPL-3.0 | true | ecb4cc87863e3c3673051b82d136bf92 |
// REQUIRES: concurrency\n// RUN: %target-typecheck-verify-swift -verify-ignore-unknown %s\n\n@MainActor\n@available(SwiftStdlib 5.5, *)\npublic class SomeMainActorClass {\n @available(*, deprecated, renamed: "request(at:completion:)")\n public func request(at: Int) async throws {}\n}\n\n@available(SwiftStdlib 5.... | dataset_sample\swift\apple_swift\test\attr\rename_function_conversion.swift | rename_function_conversion.swift | Swift | 580 | 0.95 | 0.125 | 0.214286 | react-lib | 883 | 2023-10-05T05:11:11.111558 | BSD-3-Clause | true | 4f5bbd2c430c38fe4921a788c8385318 |
// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s -require-explicit-availability=warn\n// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s -library-level=api\n\n// This test should pass for all Apple platforms.\n// REQUIRES: VENDOR=apple\n\npublic struct NoAvailabilityStruct { //... | dataset_sample\swift\apple_swift\test\attr\require_explicit_availability.swift | require_explicit_availability.swift | Swift | 900 | 0.95 | 0.043478 | 0.222222 | node-utils | 945 | 2025-02-19T00:09:22.545467 | MIT | true | 6693317adea57cea9758dad5419570bb |
// Test the -require-explicit-availability flag\n// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n\n/// Using the flag directly raises warnings and fixits.\n// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s \\n// RUN: -target %target-cpu-apple-macosx10.10 -package-name Foo \\n// RUN: -requ... | dataset_sample\swift\apple_swift\test\attr\require_explicit_availability_macos.swift | require_explicit_availability_macos.swift | Swift | 10,428 | 0.95 | 0.018051 | 0.161765 | vue-tools | 310 | 2024-09-24T21:45:00.982029 | BSD-3-Clause | true | cf22dfe40e7f9408f4e1e4099978511e |
// Test that the -require-explicit-availability flag does not cause diagnostics\n// to be emitted on platforms where versioned availability annotations are not\n// meaningful.\n\n// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s -require-explicit-availability=error\n\n// Currently versioned availab... | dataset_sample\swift\apple_swift\test\attr\require_explicit_availability_non_darwin.swift | require_explicit_availability_non_darwin.swift | Swift | 667 | 0.95 | 0 | 0.375 | vue-tools | 290 | 2023-12-20T04:20:15.134736 | GPL-3.0 | true | 080133cebd2d02c0b26e1d2a5c5cd48c |
// RUN: %target-typecheck-verify-swift\n\n@_spi_available(*, deprecated, renamed: "another") // expected-error {{SPI available only supports introducing version on specific platform}}\npublic class SPIClass1 {} // expected-warning {{symbols that are '@_spi_available' on all platforms should use '@_spi' instead}}\n\n@_s... | dataset_sample\swift\apple_swift\test\attr\spi_available.swift | spi_available.swift | Swift | 1,308 | 0.95 | 0.291667 | 0.058824 | vue-tools | 168 | 2024-01-20T05:08:09.856885 | BSD-3-Clause | true | eebfc02b329fe1225c446f2cf072e8b4 |
// RUN: %swift -typecheck -verify -target %target-cpu-apple-macosx11 %s\n\n// REQUIRES: OS=macosx\n\n@available(macOS 13, *)\nenum MyError: Error {\n case fail\n}\n\n@available(macOS 12, *)\nfunc throwMyErrorBadly() throws(MyError) { }\n// expected-error@-1{{'MyError' is only available in macOS 13 or newer}}\n | dataset_sample\swift\apple_swift\test\attr\typed_throws_availability_osx.swift | typed_throws_availability_osx.swift | Swift | 300 | 0.8 | 0 | 0.333333 | python-kit | 824 | 2025-04-25T02:13:20.404029 | MIT | true | d16cf23e4a80ebae2d8b56a4add6318d |
// RUN: %target-swift-frontend -typecheck %s -verify -package-name myPkg\n\n// MARK: - Correct type eraser\n\nclass AnyP: P1 {\n init<T: P1>(erasing t: T) {}\n}\n@_typeEraser(AnyP) // okay\nprotocol P1 {}\n\nclass AnyP2: P2 {\n init<T: P2>(erasing t: T) {}\n}\ntypealias AnyP2Alias = AnyP2\n@_typeEraser(AnyP2Alias)\np... | dataset_sample\swift\apple_swift\test\attr\typeEraser.swift | typeEraser.swift | Swift | 7,584 | 0.95 | 0.129213 | 0.06993 | node-utils | 135 | 2024-03-25T23:32:44.135079 | MIT | true | b0d1ba138640e871092fed1fdffebede |
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module-path %t/Other1.swiftmodule -module-name Other1 %S/Inputs/warn_unqualified_access_other.swift\n// RUN: %target-swift-frontend -emit-module-path %t/Other2.swiftmodule -module-name Other2 %S/Inputs/warn_unqualified_access_other.swift\n// RUN: %targe... | dataset_sample\swift\apple_swift\test\attr\warn_unqualified_access.swift | warn_unqualified_access.swift | Swift | 3,516 | 0.95 | 0.168675 | 0.136364 | awesome-app | 219 | 2024-02-15T22:21:12.603594 | MIT | true | c31e805269384a43e4b668442b07a26f |
// RUN: %target-swift-frontend -Xllvm -sil-print-types -emit-sil -O %s | %FileCheck %s\n// REQUIRES: swift_in_compiler\n\n// Checks for inlining depends on code-size but cow check adds some\n// amount of extra code\n// UNSUPPORTED: array_cow_checks\n\nimport _Differentiation\n\n@_silgen_name("blackHole")\n@inline(never... | dataset_sample\swift\apple_swift\test\AutoDiff\e2e_optimizations.swift | e2e_optimizations.swift | Swift | 4,258 | 0.95 | 0.075 | 0.4 | python-kit | 297 | 2024-11-09T10:09:00.535506 | BSD-3-Clause | true | 6d55e4a8578550b769a7f0dee73467cf |
// RUN: %target-swift-frontend -emit-sil -enable-experimental-forward-mode-differentiation -module-name=mangling -verify %s | %FileCheck %s\n\nimport _Differentiation\n\n@differentiable(reverse)\nfunc foo(_ x: Float) -> Float { x }\n\n// CHECK-LABEL: sil_differentiability_witness hidden [reverse] [parameters 0] [result... | dataset_sample\swift\apple_swift\test\AutoDiff\mangling.swift | mangling.swift | Swift | 4,886 | 0.95 | 0.148936 | 0.542857 | node-utils | 501 | 2025-06-02T07:33:40.537215 | Apache-2.0 | true | b6a0e93905eaa0612a17c89979f8badf |
// RUN: %target-swiftc_driver -c %s -o %t\n// RUN: %target-swift-autolink-extract %t -o - | %FileCheck --check-prefix CHECK-%target-object-format %s\n\n// REQUIRES: autolink-extract\n\n// CHECK-elf: -lswiftCore\n// CHECK-coff: -lswiftCore\n// CHECK-wasm: -lswiftCore\n | dataset_sample\swift\apple_swift\test\AutolinkExtract\empty.swift | empty.swift | Swift | 260 | 0.8 | 0 | 1 | vue-tools | 269 | 2024-07-15T06:10:31.930354 | GPL-3.0 | true | f8d83976ebff82a0661d9a04d98b0ffc |
// RUN: %target-swiftc_driver -c %s -o %t\n// RUN: rm -f %t.a\n// RUN: llvm-ar cr %t.a %t\n// RUN: %target-swift-autolink-extract %t.a -o - | %FileCheck --check-prefix CHECK-%target-object-format %s\n\n// REQUIRES: autolink-extract\n\n// CHECK-elf: -lswiftCore\n// CHECK-coff: -lswiftCore\n// CHECK-wasm: -lswiftCore\n | dataset_sample\swift\apple_swift\test\AutolinkExtract\empty_archive.swift | empty_archive.swift | Swift | 308 | 0.8 | 0 | 1 | react-lib | 375 | 2025-01-09T14:43:16.705729 | MIT | true | 518fbb4eba2cafd99951c829c367500c |
// RUN: not %target-swift-autolink-extract 2>&1 | %FileCheck %s\n\n// REQUIRES: autolink-extract\n\n// CHECK: <unknown>:0: error: this mode requires at least one input file\n | dataset_sample\swift\apple_swift\test\AutolinkExtract\error_no_inputs.swift | error_no_inputs.swift | Swift | 169 | 0.95 | 0 | 1 | python-kit | 580 | 2024-02-20T09:40:07.170283 | GPL-3.0 | true | c9ec30c63b29595185e3360e67cf4540 |
// RUN: %empty-directory(%t)\n// RUN: %target-swiftc_driver -emit-module -emit-module-path %t/empty.swiftmodule -module-name empty -module-link-name empty %S/empty.swift\n// RUN: %target-swiftc_driver -c %s -I %t -o %t/import_experimental.o\n// RUN: %target-swift-autolink-extract %t/import_experimental.o -o - | %FileCh... | dataset_sample\swift\apple_swift\test\AutolinkExtract\import.swift | import.swift | Swift | 1,194 | 0.95 | 0 | 0.944444 | python-kit | 567 | 2023-08-23T18:52:10.985069 | GPL-3.0 | true | 659aee40ac201cf34aced4d1be5a3bdf |
// RUN: %empty-directory(%t)\n// RUN: %target-swiftc_driver -emit-module -emit-module-path %t/empty.swiftmodule -module-name empty -module-link-name empty %S/empty.swift\n// RUN: %target-swiftc_driver -c %s -I %t -o %t/import_experimental.o\n// RUN: llvm-ar cr %t/import_experimental.a %t/import_experimental.o\n// RUN: ... | dataset_sample\swift\apple_swift\test\AutolinkExtract\import_archive.swift | import_archive.swift | Swift | 656 | 0.95 | 0 | 0.923077 | react-lib | 10 | 2024-11-12T14:05:15.121164 | MIT | true | 09df8b2ac5ad8a3b8c5b2ab6044f6e8b |
// RUN: %empty-directory(%t)\n// RUN: %target-swiftc_driver -c %s -F %S/Inputs/Frameworks -o %t/import_framework.o\n// RUN: %target-swift-autolink-extract %t/import_framework.o -o - | %FileCheck --check-prefix CHECK-%target-object-format %s\n\n// REQUIRES: autolink-extract\n\n// CHECK-elf-NOT: Link\n// CHECK-coff-NOT: ... | dataset_sample\swift\apple_swift\test\AutolinkExtract\import_framework.swift | import_framework.swift | Swift | 361 | 0.95 | 0 | 0.75 | python-kit | 915 | 2023-11-06T20:19:19.752811 | GPL-3.0 | true | 3963decaa9ac2acd7568ff7d8728fa45 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -o %t/BacktraceWithLimit\n// RUN: %target-codesign %t/BacktraceWithLimit\n// RUN: %target-run %t/BacktraceWithLimit | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_runtime\n// REQUIRES: executable_tes... | dataset_sample\swift\apple_swift\test\Backtracing\BacktraceWithLimit.swift | BacktraceWithLimit.swift | Swift | 1,432 | 0.95 | 0.041667 | 0.585366 | node-utils | 201 | 2024-10-02T22:00:54.496583 | Apache-2.0 | true | 027cb36e4a626ebb17ab565eabacf22a |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -o %t/BacktraceWithLimitAndTop\n// RUN: %target-codesign %t/BacktraceWithLimitAndTop\n// RUN: %target-run %t/BacktraceWithLimitAndTop | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_runtime\n// REQUIR... | dataset_sample\swift\apple_swift\test\Backtracing\BacktraceWithLimitAndTop.swift | BacktraceWithLimitAndTop.swift | Swift | 2,201 | 0.95 | 0.031746 | 0.648148 | python-kit | 422 | 2025-04-12T12:22:33.266782 | Apache-2.0 | true | 9a1a72c80f3d6439feb108c3ecee7505 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -target %target-cpu-macos15.0 -Xfrontend -parse-as-library -Onone -o %t/CodableBacktrace\n// RUN: %target-codesign %t/CodableBacktrace\n// RUN: %target-run %t/CodableBacktrace | %FileCheck %s\n\n// REQUIRES: executable_test\n// REQUIRES: backtracing\n// REQUI... | dataset_sample\swift\apple_swift\test\Backtracing\CodableBacktrace.swift | CodableBacktrace.swift | Swift | 1,435 | 0.95 | 0.044776 | 0.38 | vue-tools | 489 | 2025-06-13T03:50:04.145219 | Apache-2.0 | true | a57e0d6a25f4dfda3b0da59e5580a313 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -o %t/ImageMap\n// RUN: %target-codesign %t/ImageMap\n// RUN: %target-run %t/ImageMap | tee %t/ImageMap.out\n// RUN: cat %t/ImageMap.out | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_runtime\n// REQ... | dataset_sample\swift\apple_swift\test\Backtracing\CompactImageMap.swift | CompactImageMap.swift | Swift | 1,581 | 0.95 | 0.0625 | 0.288462 | react-lib | 580 | 2024-03-09T02:37:02.397763 | Apache-2.0 | true | e2e5a31e45a6d208d2092cf0e081462f |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/Crash\n// RUN: %target-build-swift %s -parse-as-library -Onone -o %t/CrashNoDebug\n// RUN: %target-build-swift %s -parse-as-library -O -g -o %t/CrashOpt\n// RUN: %target-build-swift %s -parse-as-library -O -o %t/CrashOptNoDeb... | dataset_sample\swift\apple_swift\test\Backtracing\Crash.swift | Crash.swift | Swift | 6,834 | 0.8 | 0 | 0.824427 | vue-tools | 397 | 2025-06-08T03:59:15.572159 | MIT | true | 0d08561717726981a3f22cce739f55a4 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/CrashAsync\n// RUN: %target-codesign %t/CrashAsync\n\n// Demangling is disabled for now because older macOS can't demangle async\n// function names. We test demangling elsewhere, so this is no big deal.\n\n// RUN: (env SWIFT... | dataset_sample\swift\apple_swift\test\Backtracing\CrashAsync.swift | CrashAsync.swift | Swift | 4,733 | 0.95 | 0.04 | 0.75 | python-kit | 668 | 2025-06-26T00:50:36.772065 | GPL-3.0 | true | 93bc37ee6307c8ef6e0647204dcd034a |
// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/crashlogs)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/CrashOutputFile\n// RUN: %target-codesign %t/CrashOutputFile\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no,output-to=%t/crash.log %target-run %t/CrashOutputFile 2>&1 || true) && cat... | dataset_sample\swift\apple_swift\test\Backtracing\CrashOutputFile.swift | CrashOutputFile.swift | Swift | 2,328 | 0.8 | 0 | 0.520833 | awesome-app | 30 | 2025-02-21T13:12:25.810149 | BSD-3-Clause | true | 17aca4132124c61bad5dabdd0feef871 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library %import-static-libdispatch -Onone -static-stdlib -g -o %t/CrashStatic\n// RUN: %target-codesign %t/CrashStatic\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no,swift-backtrace=%backtracer %target-run %t/CrashStatic 2>&1 || true) | %FileChec... | dataset_sample\swift\apple_swift\test\Backtracing\CrashStatic.swift | CrashStatic.swift | Swift | 2,083 | 0.95 | 0 | 0.510638 | awesome-app | 664 | 2024-03-03T05:38:53.150359 | MIT | true | 763b7e4c8a6e949089fbdf74d44fb568 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/CrashWithThunk\n// RUN: %target-codesign %t/CrashWithThunk\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no %target-run %t/CrashWithThunk 2>&1 || true) | %FileCheck %s\n// RUN: (env SWIFT_BACKTRACE=preset=friendly,enable=yes... | dataset_sample\swift\apple_swift\test\Backtracing\CrashWithThunk.swift | CrashWithThunk.swift | Swift | 2,612 | 0.8 | 0.014493 | 0.711538 | awesome-app | 887 | 2025-01-27T11:50:09.573535 | MIT | true | 61969eecbb630b753b2629935634e55b |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %S/Inputs/Inlining.swift -parse-as-library -g -o %t/Inlining\n// RUN: %target-build-swift %s -parse-as-library -g -o %t/DwarfReader\n// RUN: %target-run %t/DwarfReader %t/Inlining | %FileCheck %s\n\n// REQUIRES: OS=linux-gnu\n// REQUIRES: backtracing\n\n@_spi(Dw... | dataset_sample\swift\apple_swift\test\Backtracing\DwarfReader.swift | DwarfReader.swift | Swift | 864 | 0.95 | 0.083333 | 0.451613 | vue-tools | 599 | 2024-06-13T17:25:59.684855 | MIT | true | d5ad1bce8e9c6df10902d20952cf63b1 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/EarlyMessage\n// RUN: %target-codesign %t/EarlyMessage\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no %target-run %t/EarlyMessage 2>&1 || true) | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deploym... | dataset_sample\swift\apple_swift\test\Backtracing\EarlyMessage.swift | EarlyMessage.swift | Swift | 1,003 | 0.8 | 0 | 0.378378 | vue-tools | 475 | 2024-12-03T15:46:50.654095 | Apache-2.0 | true | 37297086c377a32622776c75dc0d55af |
// RUN: %empty-directory(%t)\n// RUN: %target-clang -x c -Wno-unused-command-line-argument -Wl,--build-id -g %S/Inputs/fib.c -o %t/fib\n// RUN: %target-clang -x c -Wno-unused-command-line-argument -g %S/Inputs/fib.c -o %t/fib-no-uuid\n// RUN: %target-clang -x c -Wno-unused-command-line-argument -Wl,--build-id -Wl,--com... | dataset_sample\swift\apple_swift\test\Backtracing\ElfReader.swift | ElfReader.swift | Swift | 5,996 | 0.95 | 0.037037 | 0.859504 | node-utils | 563 | 2024-09-29T01:23:36.567955 | Apache-2.0 | true | 1f58e5780d9b0c72ac2c79bcadc695b2 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/FatalError\n// RUN: %target-codesign %t/FatalError\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no %target-run %t/FatalError 2>&1 || true) | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_ru... | dataset_sample\swift\apple_swift\test\Backtracing\FatalError.swift | FatalError.swift | Swift | 1,901 | 0.8 | 0 | 0.511628 | node-utils | 330 | 2023-12-12T12:38:34.691673 | MIT | true | e95110f703f0dd7917de9a092c11aa28 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -o %t/ImageMap\n// RUN: %target-codesign %t/ImageMap\n// RUN: %target-run %t/ImageMap | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_runtime\n// REQUIRES: executable_test\n// REQUIRES: backtracing\n/... | dataset_sample\swift\apple_swift\test\Backtracing\ImageMap.swift | ImageMap.swift | Swift | 748 | 0.95 | 0 | 0.6 | python-kit | 726 | 2025-01-14T00:12:45.598433 | GPL-3.0 | true | 092a82816aa1ee71e8a92542798ad316 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/Crash\n// RUN: %target-codesign %t/Crash\n// RUN: env SWIFT_BACKTRACE=enable=yes,cache=no,format=json,output-to=%t/crash.json %target-run %t/Crash 2>&1 || true\n// RUN: %validate-json %t/crash.json | %FileCheck %s\n\n\n// Als... | dataset_sample\swift\apple_swift\test\Backtracing\JSON.swift | JSON.swift | Swift | 8,353 | 0.8 | 0 | 0.883838 | vue-tools | 812 | 2023-10-02T10:31:44.783652 | MIT | true | ff8166a931d237f373658d69f36c5e4a |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/JSONAsync\n// RUN: %target-codesign %t/JSONAsync\n\n// RUN: env SWIFT_BACKTRACE=enable=yes,demangle=no,cache=no,format=json,output-to=%t/crash.json %target-run %t/JSONAsync 2>&1 || true\n// RUN: %validate-json %t/crash.json |... | dataset_sample\swift\apple_swift\test\Backtracing\JSONAsync.swift | JSONAsync.swift | Swift | 7,388 | 0.8 | 0.004545 | 0.891892 | vue-tools | 649 | 2023-07-21T12:10:18.178440 | Apache-2.0 | true | 5be8597905f1a8a6e181caa7637d2154 |
// RUN: %empty-directory(%t)\n// RUN: ( %target-build-swift %s -o %t/NotImportedByDefault || true ) 2>&1 | %FileCheck %s\n\n// Windows chokes on the parens in the above expression\n// UNSUPPORTED: OS=windows-msvc\n\n// REQUIRES: backtracing\n\nlet backtrace = try! Backtrace.capture()\n\n// CHECK: error: cannot find 'Ba... | dataset_sample\swift\apple_swift\test\Backtracing\NotImportedByDefault.swift | NotImportedByDefault.swift | Swift | 328 | 0.8 | 0.090909 | 0.857143 | awesome-app | 519 | 2023-11-12T11:04:20.295355 | BSD-3-Clause | true | bcdb821c7ac3af6d274f6777f46f4e1a |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/Overflow\n// RUN: %target-codesign %t/Overflow\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no %target-run %t/Overflow 2>&1 || true) | %FileCheck %s\n// RUN: (env SWIFT_BACKTRACE=preset=friendly,enable=yes,cache=no %target-... | dataset_sample\swift\apple_swift\test\Backtracing\Overflow.swift | Overflow.swift | Swift | 3,572 | 0.8 | 0 | 0.72619 | python-kit | 430 | 2024-08-29T17:08:51.421171 | Apache-2.0 | true | c639eda25ec74ab9a0a07859a264be74 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -g -parse-as-library -Onone -o %t/SimpleAsyncBacktrace\n// RUN: %target-codesign %t/SimpleAsyncBacktrace\n// RUN: %target-run %t/SimpleAsyncBacktrace | %FileCheck %s\n\n// REQUIRES: concurrency\n// REQUIRES: concurrency_runtime\n// REQUIRES: executable_test\n... | dataset_sample\swift\apple_swift\test\Backtracing\SimpleAsyncBacktrace.swift | SimpleAsyncBacktrace.swift | Swift | 1,261 | 0.95 | 0.017544 | 0.369565 | node-utils | 766 | 2024-02-11T21:01:16.345431 | Apache-2.0 | true | 7e12a3d384a2dbc90d99a96bf044b0ea |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -Xfrontend -parse-as-library -Onone -o %t/SimpleBacktrace\n// RUN: %target-codesign %t/SimpleBacktrace\n// RUN: %target-run %t/SimpleBacktrace | %FileCheck %s\n\n// REQUIRES: executable_test\n// REQUIRES: backtracing\n// REQUIRES: OS=macosx || OS=linux-gnu\n\... | dataset_sample\swift\apple_swift\test\Backtracing\SimpleBacktrace.swift | SimpleBacktrace.swift | Swift | 969 | 0.95 | 0.020408 | 0.394737 | awesome-app | 764 | 2024-07-29T17:02:23.328008 | BSD-3-Clause | true | aee9f695372ae632fae225f1c61f33ce |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/StackOverflow\n// RUN: %target-codesign %t/StackOverflow\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no %target-run %t/StackOverflow 2>&1|| true) | %FileCheck %s\n// RUN: (env SWIFT_BACKTRACE=limit=17,top=5,enable=yes,cach... | dataset_sample\swift\apple_swift\test\Backtracing\StackOverflow.swift | StackOverflow.swift | Swift | 18,757 | 0.8 | 0.013453 | 0.938776 | react-lib | 207 | 2025-03-18T13:32:49.077577 | MIT | true | dcc76d0ee7e7425c71dbf78cd2b1ebcf |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library %import-static-libdispatch -Onone -g -o %t/StaticBacktracer\n// RUN: %target-codesign %t/StaticBacktracer\n// RUN: /usr/bin/ldd %backtracer-static | %FileCheck %s --check-prefix LIBS\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no,swift-ba... | dataset_sample\swift\apple_swift\test\Backtracing\StaticBacktracer.swift | StaticBacktracer.swift | Swift | 2,473 | 0.95 | 0 | 0.557692 | node-utils | 340 | 2024-06-12T12:51:30.905332 | GPL-3.0 | true | 1a23d4f2f62ffcd804f8ace4e69bb425 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -g -Onone -o %t/SymbolicatedBacktrace\n// RUN: %target-codesign %t/SymbolicatedBacktrace\n// RUN: %target-run %t/SymbolicatedBacktrace | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_runtime\n// REQUIRES: ex... | dataset_sample\swift\apple_swift\test\Backtracing\SymbolicatedBacktrace.swift | SymbolicatedBacktrace.swift | Swift | 1,387 | 0.95 | 0.018182 | 0.363636 | awesome-app | 955 | 2024-12-27T02:19:35.464653 | GPL-3.0 | true | 1603d64c2b44924b61d4bf25e1acf90f |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -g -O -o %t/SymbolicatedBacktraceInline\n// RUN: %target-codesign %t/SymbolicatedBacktraceInline\n// RUN: %target-run %t/SymbolicatedBacktraceInline | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_runtime\n/... | dataset_sample\swift\apple_swift\test\Backtracing\SymbolicatedBacktraceInline.swift | SymbolicatedBacktraceInline.swift | Swift | 1,707 | 0.95 | 0.016949 | 0.404255 | node-utils | 227 | 2023-10-01T15:08:10.019824 | Apache-2.0 | true | d0a28419dcaf2b4fe8a7db2b5cc90fe7 |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -parse-as-library -Onone -g -o %t/Timing\n// RUN: %target-codesign %t/Timing\n// RUN: (env SWIFT_BACKTRACE=enable=yes,cache=no %target-run %t/Timing 2>&1 || true) | %FileCheck %s\n\n// UNSUPPORTED: use_os_stdlib\n// UNSUPPORTED: back_deployment_runtime\n// UN... | dataset_sample\swift\apple_swift\test\Backtracing\Timing.swift | Timing.swift | Swift | 877 | 0.8 | 0 | 0.361111 | react-lib | 126 | 2024-10-06T07:20:46.446693 | Apache-2.0 | true | 9db8c9d70e63dd269b31539dea960eb5 |
// REQUIRES: objc_interop\n\n// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n// RUN: mkdir -p %t/cas\n\n// RUN: %target-swift-frontend -emit-module -module-cache-path %t/clang-module-cache %S/../ScanDependencies/Inputs/Swift/E.swiftinterface -o %t/E.swiftmodule -I %S/../ScanDependencies/Inputs/CHe... | dataset_sample\swift\apple_swift\test\CAS\binary_module_deps.swift | binary_module_deps.swift | Swift | 1,814 | 0.95 | 0 | 0.939394 | node-utils | 378 | 2024-08-12T06:10:55.867703 | GPL-3.0 | true | 86f5b6a63fd3126dec204e6b6a6c415d |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: -blocklist-file %t/blocklist.yml -blocklist-file %t/empty.yml \\n// RUN... | dataset_sample\swift\apple_swift\test\CAS\block-list.swift | block-list.swift | Swift | 3,072 | 0.95 | 0.012987 | 0.698413 | node-utils | 157 | 2024-12-24T12:38:34.637739 | Apache-2.0 | true | 54b0dbaec5c350b1fbbc569c84366b93 |
// REQUIRES: objc_interop\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: %t/... | dataset_sample\swift\apple_swift\test\CAS\bridging-header.swift | bridging-header.swift | Swift | 13,056 | 0.95 | 0.010909 | 0.820961 | react-lib | 523 | 2023-12-04T06:08:08.086647 | MIT | true | 32c6513065f4be5e7fb27aae5da751a8 |
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O -import-objc-header %S/Inputs/objc.h -auto-bridging-header-chaining \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: %s -o %t/deps.json -cache-com... | dataset_sample\swift\apple_swift\test\CAS\cached_diagnostics.swift | cached_diagnostics.swift | Swift | 4,041 | 0.95 | 0 | 0.901961 | python-kit | 96 | 2025-05-08T23:19:26.991999 | Apache-2.0 | true | 483497c556bafade099075d87a7e7563 |
// REQUIRES: swift_feature_RegionBasedIsolation\n// REQUIRES: objc_interop\n\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O -I %t \\n// RUN: -disable-implicit-string-processing-module-import \\n// RUN: %t/test.swift -o %t/deps.json -... | dataset_sample\swift\apple_swift\test\CAS\cached_diagnostics_empty_filename.swift | cached_diagnostics_empty_filename.swift | Swift | 2,527 | 0.95 | 0.014706 | 0.7 | vue-tools | 366 | 2025-05-30T11:12:23.903177 | Apache-2.0 | true | e2fe07ed4c7c9270f1c2922e4c033ca1 |
// REQUIRES: swift_swift_parser\n\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n// RUN: %host-build-swift -swift-version 5 -emit-library -o %t/%target-library-name(MacroDefinition) -module-name=MacroDefinition %t/macro.swift\n\n// RUN: %target-swift-frontend -typecheck -module-load-mode prefer-serialized -mo... | dataset_sample\swift\apple_swift\test\CAS\cached_diagnostics_macro.swift | cached_diagnostics_macro.swift | Swift | 3,298 | 0.95 | 0 | 0.526316 | python-kit | 869 | 2023-07-18T03:41:15.168892 | BSD-3-Clause | true | 6afa83401d7997d6cce6525cb66582e1 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O -I %t \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: %t/test.swift -o %t/deps.json -cache-compile-job -cas-path %t/cas... | dataset_sample\swift\apple_swift\test\CAS\cached_diagnostics_pcm.swift | cached_diagnostics_pcm.swift | Swift | 2,014 | 0.95 | 0.021739 | 0.857143 | awesome-app | 778 | 2025-02-19T18:26:47.881768 | MIT | true | 18b1017d81d743b5ebbf13df9fd53507 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n/// Check path remapping.\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O -import-objc-header %t/objc.h -auto-bridging-header-chaining \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-imp... | dataset_sample\swift\apple_swift\test\CAS\cached_diagnostics_remap.swift | cached_diagnostics_remap.swift | Swift | 3,051 | 0.95 | 0 | 0.975 | python-kit | 283 | 2024-06-02T14:05:21.465039 | MIT | true | 5f910dd6fa83cbbd9d99136d86f64c0b |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/a.swift %t/b.swift -o %t/deps.json -cache-compile-job ... | dataset_sample\swift\apple_swift\test\CAS\cache_key_compute.swift | cache_key_compute.swift | Swift | 5,953 | 0.95 | 0 | 0.98 | node-utils | 48 | 2024-04-14T13:00:55.736552 | BSD-3-Clause | true | a45a4669c523ed57dec250ada0df40bb |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O -module-cache-path %t/clang-module-cache \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/test.swift -I... | dataset_sample\swift\apple_swift\test\CAS\cache_replay.swift | cache_replay.swift | Swift | 3,608 | 0.95 | 0.048387 | 0.877551 | vue-tools | 37 | 2023-12-19T09:06:16.928734 | Apache-2.0 | true | 5297b04fb457c0ffbb4b1b31d08d8b33 |
// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O -module-cache-path %t/clang-module-cache \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n//... | dataset_sample\swift\apple_swift\test\CAS\cache_replay_mccas.swift | cache_replay_mccas.swift | Swift | 4,029 | 0.95 | 0.043478 | 0.892857 | python-kit | 794 | 2023-12-15T03:50:59.334898 | GPL-3.0 | true | 3a48472f9e13c3bf0276cae6c5fb23dd |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/test.swift %t/foo.swift -o %t/deps.json -cache-compile... | dataset_sample\swift\apple_swift\test\CAS\cache_replay_multiple_files.swift | cache_replay_multiple_files.swift | Swift | 2,545 | 0.95 | 0.04878 | 0.939394 | react-lib | 989 | 2024-09-26T17:07:52.676929 | MIT | true | 0e5139b8cd65c989d89366c6fcbdbc4b |
// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/test.swift %t/foo.swift -o %t/... | dataset_sample\swift\apple_swift\test\CAS\cache_replay_multiple_files_mccas.swift | cache_replay_multiple_files_mccas.swift | Swift | 3,008 | 0.95 | 0.041667 | 0.95 | awesome-app | 900 | 2024-02-12T15:00:23.985011 | GPL-3.0 | true | 27034734d90697be8035a29fdcff8ccf |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/main.swift -o... | dataset_sample\swift\apple_swift\test\CAS\can-import.swift | can-import.swift | Swift | 3,924 | 0.95 | 0.06383 | 0.612069 | awesome-app | 284 | 2024-02-04T05:53:40.879670 | Apache-2.0 | true | 3c0779416d802aa0017fb84f6f08751f |
// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/cas\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -emit-module -module-cache-path %t/clang-module-cache %t/A.swift -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib -o %t/A.swiftmodule -swift-versio... | dataset_sample\swift\apple_swift\test\CAS\cas-explicit-module-map.swift | cas-explicit-module-map.swift | Swift | 4,504 | 0.95 | 0.014925 | 0.925926 | node-utils | 97 | 2024-02-08T21:46:08.523501 | GPL-3.0 | true | ea27df6c74c97475a6238f9ed21889a4 |
// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/empty\n// RUN: mkdir -p %t/cas\n\n// RUN: llvm-cas --cas %t/cas --ingest %t/empty > %t/empty.casid\n// RUN: not %target-swift-frontend -typecheck -cache-compile-job -cas-fs @%t/empty.casid -cas-path %t/cas %s 2>&1 | %FileCheck %s --check-prefix NO-INPUTS\n// NO-INPUTS: ... | dataset_sample\swift\apple_swift\test\CAS\cas_fs.swift | cas_fs.swift | Swift | 1,558 | 0.95 | 0.035714 | 0.952381 | react-lib | 153 | 2025-04-03T23:14:07.432864 | BSD-3-Clause | true | df7b054d826e0cb6cbaafefe807895fa |
// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/cas\n\n// RUN: not %target-swift-frontend -c -cache-compile-job -cas-path %t/cas %s -o %t/test.o 2>&1 | %FileCheck %s --check-prefix=NO-CASFS\n// NO-CASFS: caching is enabled without -cas-fs option\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -... | dataset_sample\swift\apple_swift\test\CAS\cas_output_backend.swift | cas_output_backend.swift | Swift | 1,471 | 0.95 | 0.074074 | 0.95 | node-utils | 569 | 2024-10-08T01:36:16.093626 | BSD-3-Clause | true | 28221d8f7d2a35a52a8d8975e96fda5d |
// REQUIRES: objc_interop\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -emit-module -module-name A_Internal -o %t/A_Internal.swiftmodule -swift-version 5 \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: -... | dataset_sample\swift\apple_swift\test\CAS\clang-module-export-as.swift | clang-module-export-as.swift | Swift | 2,644 | 0.95 | 0 | 0.576271 | vue-tools | 854 | 2024-02-14T14:13:50.186204 | Apache-2.0 | true | e56df72a4f5b863ff29f35bb872c4a6b |
// REQUIRES: OS=macosx\n\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -target arm64-apple-macos11 -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-mod... | dataset_sample\swift\apple_swift\test\CAS\clang-target-codegen.swift | clang-target-codegen.swift | Swift | 2,118 | 0.95 | 0 | 0.8 | node-utils | 641 | 2023-09-13T18:51:27.895882 | BSD-3-Clause | true | 2c20e032e57bf3ccef3431ddb4ac267d |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -emit-module -module-name A -o %t/A.swiftmodule -swift-version 5 \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: -emit-module-interface-path %t/A... | dataset_sample\swift\apple_swift\test\CAS\cross_import.swift | cross_import.swift | Swift | 3,861 | 0.95 | 0 | 0.662338 | node-utils | 413 | 2024-03-19T19:24:05.509283 | MIT | true | 0fd148630e978d2024e297c4b601190f |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O -g \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/main.swift... | dataset_sample\swift\apple_swift\test\CAS\debuginfo_invariant.swift | debuginfo_invariant.swift | Swift | 1,495 | 0.95 | 0 | 0.958333 | react-lib | 970 | 2023-10-22T03:44:54.566391 | MIT | true | 2b4e85e3d6315e95bc0c77d62b57d7c3 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/main.swift -o... | dataset_sample\swift\apple_swift\test\CAS\dependency_file.swift | dependency_file.swift | Swift | 5,780 | 0.95 | 0.011236 | 0.972222 | awesome-app | 541 | 2025-04-29T11:43:22.483193 | Apache-2.0 | true | 7c208f96bb4b18db818c945d760cf1c3 |
// REQUIRES: objc_interop, OS=macosx\n\n// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n// RUN: mkdir -p %t/cas\n\n// RUN: mkdir -p %t/resource/macosx\n// RUN: cp %S/../IRGen/Inputs/legacy_type_info/a.yaml %t/resource/macosx/layouts-x86_64.yaml\n\n// RUN: %target-swift-frontend -scan-dependencies ... | dataset_sample\swift\apple_swift\test\CAS\deps_cas_fs.swift | deps_cas_fs.swift | Swift | 1,757 | 0.95 | 0 | 0.916667 | react-lib | 109 | 2024-12-30T08:40:39.459228 | MIT | true | 10703939acb6288a801908c62dfd7dd5 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib -module-load-mode prefer-seri... | dataset_sample\swift\apple_swift\test\CAS\deterministic_check.swift | deterministic_check.swift | Swift | 1,640 | 0.95 | 0 | 0.705882 | python-kit | 503 | 2024-12-15T12:58:17.142303 | GPL-3.0 | true | f7361c860501fda9c21ea59891501521 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O -g \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/main.swift... | dataset_sample\swift\apple_swift\test\CAS\embedded-Xcc.swift | embedded-Xcc.swift | Swift | 1,481 | 0.95 | 0 | 0.954545 | react-lib | 791 | 2024-02-22T11:36:48.430823 | GPL-3.0 | true | c17d845192ad08371bc0de8b9ce72d21 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache %t/main.swift -o %t/deps.json -I %t/include -swift-version 4 -cache-compile-job -cas-path %t/cas -cxx-interoperability-mode=default\n\n// RUN: %{python} ... | dataset_sample\swift\apple_swift\test\CAS\include-tree-cxx.swift | include-tree-cxx.swift | Swift | 727 | 0.95 | 0.041667 | 0.588235 | awesome-app | 59 | 2023-08-06T22:55:53.192781 | MIT | true | 6f7ccfd364bb66853d5ceea65cbe104a |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache %t/main.swift \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: -o %t... | dataset_sample\swift\apple_swift\test\CAS\include-tree.swift | include-tree.swift | Swift | 1,864 | 0.95 | 0.025641 | 0.8125 | awesome-app | 64 | 2023-08-27T21:32:34.444790 | Apache-2.0 | true | f1a7319ee58e1fb8f309847d897b8b1b |
// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/module-cache)\n\n// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/module-cache %s -o %t/deps.json -I %S/../ScanDependencies/Inputs/Swift -cache-compile-job -cas-path %t/cas -no-clang-include-tree -Rdepend... | dataset_sample\swift\apple_swift\test\CAS\incremental_scan.swift | incremental_scan.swift | Swift | 2,074 | 0.95 | 0.111111 | 0.928571 | react-lib | 134 | 2024-03-14T08:49:57.404120 | MIT | true | 99871c41c52f20e560cc4b4876f2e984 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -emit-module %t/A.swift -I %t -module-name A \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: -enable-library-evolution -swift-version 5 \\n// RUN... | dataset_sample\swift\apple_swift\test\CAS\index-store.swift | index-store.swift | Swift | 2,597 | 0.95 | 0.018182 | 0.790698 | awesome-app | 169 | 2025-03-10T19:10:42.476565 | Apache-2.0 | true | 10ac54cc2a9f1b123649a4804deded6b |
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %s -o %t/deps.json -swift-version 5 -cache-compile-job -cas-path %t/cas\n\n// RUN: ... | dataset_sample\swift\apple_swift\test\CAS\loc-directive-diagnostics.swift | loc-directive-diagnostics.swift | Swift | 1,427 | 0.95 | 0 | 1 | python-kit | 963 | 2023-10-18T17:42:46.071464 | BSD-3-Clause | true | bffcd080be8ddbc6be614232192bedf3 |
// REQUIRES: swift_swift_parser\n\n/// Test loading dependencies that has macros.\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n/// Build macros.\n// RUN: %host-build-swift -swift-version 5 -emit-library -o %t/%target-library-name(MacroOne) -module-name=MacroOne %t/macro-1.swift\n// RUN: %host-build-swift ... | dataset_sample\swift\apple_swift\test\CAS\macro_deps.swift | macro_deps.swift | Swift | 5,716 | 0.95 | 0 | 0.568807 | react-lib | 720 | 2023-11-25T03:57:10.876875 | MIT | true | 433d6299f40106c49dac2e49fea28363 |
// REQUIRES: swift_swift_parser\n\n// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-serialized -module-name MyApp -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-impo... | dataset_sample\swift\apple_swift\test\CAS\macro_option_set.swift | macro_option_set.swift | Swift | 2,142 | 0.95 | 0 | 0.525 | vue-tools | 281 | 2025-01-05T17:13:48.963587 | Apache-2.0 | true | 0720a4184ac687a31f7624f570ab60e1 |
// REQUIRES: swift_swift_parser\n\n/// Test loading and external library through `-load-plugin-library`\n/// TODO: switch this test case to use `-external-plugin-path`.\n\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/plugins)\n//\n//== Build the plugin library\n// RUN: %host-build-swift \\n// RUN: -swift... | dataset_sample\swift\apple_swift\test\CAS\macro_plugin.swift | macro_plugin.swift | Swift | 2,977 | 0.95 | 0.013699 | 0.618182 | react-lib | 260 | 2024-02-18T18:44:31.491438 | GPL-3.0 | true | 0c6a2186b751d05afe093f21a7707d0c |
// REQUIRES: swift_swift_parser\n\n/// Test loading and external library through `-load-plugin-library`\n/// TODO: switch this test case to use `-external-plugin-path`.\n\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/plugins)\n// RUN: split-file %s %t\n//\n//== Build the plugin library\n// RUN: %host-build... | dataset_sample\swift\apple_swift\test\CAS\macro_plugin_external.swift | macro_plugin_external.swift | Swift | 8,565 | 0.95 | 0.006536 | 0.816667 | python-kit | 952 | 2024-09-25T02:40:10.767277 | Apache-2.0 | true | 68528113b97d4fd7145e13207f04d8c1 |
// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -c %s -g -cas-backend -cas-backend-mode=verify -cas-path %t/cas -o %t/test-verify.o\n// RUN: %llvm-dwarfdump %t/test-verify.o | %FileCheck %s --check-prefix=VERIFY-FILE\n// VERIFY-FILE: .debug_info\n\n// RUN: %target-swift-frontend -c ... | dataset_sample\swift\apple_swift\test\CAS\mccas.swift | mccas.swift | Swift | 1,423 | 0.8 | 0 | 0.95 | awesome-app | 310 | 2023-12-02T06:20:00.105979 | MIT | true | 410f455c1fd9dfe39946274a18808319 |
// REQUIRES: objc_interop\n\n// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n// RUN: mkdir -p %t/cas\n\n// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/clang-module-cache %s -o %t/deps.json -I %S/../ScanDependencies/Inputs/CHeaders -I %S/.... | dataset_sample\swift\apple_swift\test\CAS\module_deps.swift | module_deps.swift | Swift | 7,371 | 0.95 | 0 | 0.97546 | react-lib | 831 | 2025-03-29T21:45:07.158491 | Apache-2.0 | true | 1456218b9d187a8d085b15809710165e |
// REQUIRES: objc_interop\n\n// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n// RUN: mkdir -p %t/cas\n// RUN: split-file %s %t\n// RUN: %hmaptool write %t/hmap.json %t/empty.hmap\n\n// RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t/clang-module-cache \\n// RUN: %t/Test.swif... | dataset_sample\swift\apple_swift\test\CAS\module_deps_clang_extras.swift | module_deps_clang_extras.swift | Swift | 1,430 | 0.95 | 0 | 0.605263 | node-utils | 453 | 2023-11-11T21:31:14.134178 | GPL-3.0 | true | 4b1d25d21b4396bc216cd2eae46d6e00 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.