From 8b21fdee9660e77b25c49f6e874f1412cac4a9ea Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 3 May 2018 11:31:42 -0700 Subject: [PATCH] SILGen: enable additional tests globally Enable a number of SILGen tests to run on all targets. This improves coverage on non-Darwin targets. --- test/IDE/print_clang_decls.swift | 1 + test/SILGen/c_materializeForSet_linkage.swift | 4 +--- test/SILGen/cf.swift | 5 +---- test/SILGen/cf_members.swift | 4 +--- test/SILGen/dynamic_lookup.swift | 7 ++----- test/SILGen/external_definitions.swift | 5 +---- test/SILGen/function_conversion_objc.swift | 5 +---- test/SILGen/generic_objc_block_bridge.swift | 4 +--- test/SILGen/import_as_member_cf.swift | 3 +-- test/SILGen/lit.local.cfg | 6 +++--- test/SILGen/lying_about_optional_return_objc.swift | 3 +-- test/SILGen/metatype_in_init_delegation.swift | 5 ++++- test/SILGen/metatype_object_conversion.swift | 4 +--- test/SILGen/objc_bridged_block_optionality_diff.swift | 4 ++-- test/SILGen/objc_bridged_generic_conformance.swift | 3 +-- test/SILGen/objc_dealloc.swift | 4 +--- test/SILGen/objc_deprecated_objc_thunks.swift | 7 ++----- test/SILGen/objc_enum_unused_witnesses.swift | 4 +--- test/SILGen/objc_imported_init.swift | 4 +--- test/SILGen/objc_init_ref_delegation.swift | 4 +--- test/SILGen/objc_metatypes.swift | 4 +--- test/SILGen/objc_ownership_conventions.swift | 5 +---- test/SILGen/objc_selector.swift | 4 +--- test/SILGen/objc_subscript.swift | 4 +--- test/SILGen/objc_super.swift | 4 +--- test/SILGen/protocol_cast_toplevel.swift | 4 +--- test/SILGen/protocol_resilience_objc.swift | 3 +-- test/SILGen/super_objc_class_method.swift | 4 +--- test/SILGen/without_actually_escaping_block.swift | 4 +++- 29 files changed, 39 insertions(+), 83 deletions(-) diff --git a/test/IDE/print_clang_decls.swift b/test/IDE/print_clang_decls.swift index e8ce5b923ff12..6719bb47a6ea0 100644 --- a/test/IDE/print_clang_decls.swift +++ b/test/IDE/print_clang_decls.swift @@ -88,6 +88,7 @@ // FOUNDATION-LABEL: {{^}}/// Aaa. NSArray. Bbb.{{$}} // FOUNDATION-NEXT: {{^}}class NSArray : NSObject {{{$}} +// FOUNDATION-NEXT: init!(objects: UnsafePointer?, count cnt: Int) // FOUNDATION-NEXT: subscript(idx: Int) -> Any { get } // FOUNDATION-LABEL: {{^}}/// Aaa. NSRuncingMode. Bbb.{{$}} diff --git a/test/SILGen/c_materializeForSet_linkage.swift b/test/SILGen/c_materializeForSet_linkage.swift index 5e1c36da6e12b..161101d0ac7ba 100644 --- a/test/SILGen/c_materializeForSet_linkage.swift +++ b/test/SILGen/c_materializeForSet_linkage.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import AppKit diff --git a/test/SILGen/cf.swift b/test/SILGen/cf.swift index a3b55cf47fed6..d9b148cd9964a 100644 --- a/test/SILGen/cf.swift +++ b/test/SILGen/cf.swift @@ -1,7 +1,4 @@ - -// RUN: %target-swift-emit-silgen -module-name cf -import-cf-types -sdk %S/Inputs %s -o - | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -module-name cf -enable-objc-interop -import-cf-types -sdk %S/Inputs %s -o - | %FileCheck %s import CoreCooling diff --git a/test/SILGen/cf_members.swift b/test/SILGen/cf_members.swift index 86813debbbfcd..5cb321797bfbf 100644 --- a/test/SILGen/cf_members.swift +++ b/test/SILGen/cf_members.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -enable-sil-ownership -I %S/../IDE/Inputs/custom-modules %s | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -enable-sil-ownership -I %S/../IDE/Inputs/custom-modules %s -enable-objc-interop -I %S/Inputs/usr/include | %FileCheck %s import ImportAsMember diff --git a/test/SILGen/dynamic_lookup.swift b/test/SILGen/dynamic_lookup.swift index caa34a319c59a..4812f9527b85c 100644 --- a/test/SILGen/dynamic_lookup.swift +++ b/test/SILGen/dynamic_lookup.swift @@ -1,8 +1,5 @@ - -// RUN: %target-swift-emit-silgen -module-name dynamic_lookup -parse-as-library -disable-objc-attr-requires-foundation-module %s | %FileCheck %s -// RUN: %target-swift-emit-silgen -module-name dynamic_lookup -parse-as-library -disable-objc-attr-requires-foundation-module %s | %FileCheck %s --check-prefix=GUARANTEED - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -module-name dynamic_lookup -enable-objc-interop -parse-as-library -disable-objc-attr-requires-foundation-module %s | %FileCheck %s +// RUN: %target-swift-emit-silgen -module-name dynamic_lookup -enable-objc-interop -parse-as-library -disable-objc-attr-requires-foundation-module %s | %FileCheck %s --check-prefix=GUARANTEED class X { @objc func f() { } diff --git a/test/SILGen/external_definitions.swift b/test/SILGen/external_definitions.swift index e48dc5b920d29..ef8344c510ca4 100644 --- a/test/SILGen/external_definitions.swift +++ b/test/SILGen/external_definitions.swift @@ -1,7 +1,4 @@ - -// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -enable-sil-ownership | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import ansible diff --git a/test/SILGen/function_conversion_objc.swift b/test/SILGen/function_conversion_objc.swift index 15375f9896e18..d73bec6c05798 100644 --- a/test/SILGen/function_conversion_objc.swift +++ b/test/SILGen/function_conversion_objc.swift @@ -1,10 +1,7 @@ - -// RUN: %target-swift-emit-silgen -module-name function_conversion_objc -sdk %S/Inputs %s -I %S/Inputs -enable-sil-ownership -enable-source-import -verify | %FileCheck %s +// RUN: %target-swift-emit-silgen -module-name function_conversion_objc -sdk %S/Inputs %s -I %S/Inputs -enable-sil-ownership -enable-source-import -enable-objc-interop -verify | %FileCheck %s import Foundation -// REQUIRES: objc_interop - // ==== Metatype to object conversions // CHECK-LABEL: sil hidden @$S24function_conversion_objc20convMetatypeToObjectyySo8NSObjectCmADcF diff --git a/test/SILGen/generic_objc_block_bridge.swift b/test/SILGen/generic_objc_block_bridge.swift index 610295067ffe6..fdc6775298bf0 100644 --- a/test/SILGen/generic_objc_block_bridge.swift +++ b/test/SILGen/generic_objc_block_bridge.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-objc-interop | %FileCheck %s import Foundation diff --git a/test/SILGen/import_as_member_cf.swift b/test/SILGen/import_as_member_cf.swift index 740e6089ede82..22d48c3ee88e0 100644 --- a/test/SILGen/import_as_member_cf.swift +++ b/test/SILGen/import_as_member_cf.swift @@ -1,5 +1,4 @@ -// RUN: %target-swift-emit-silgen -enable-sil-ownership -I %S/../IDE/Inputs/custom-modules %s 2>&1 | %FileCheck --check-prefix=SIL %s -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -enable-sil-ownership -I %S/../IDE/Inputs/custom-modules %s -enable-objc-interop -sdk %S/Inputs 2>&1 | %FileCheck --check-prefix=SIL %s import ImportAsMember.C diff --git a/test/SILGen/lit.local.cfg b/test/SILGen/lit.local.cfg index 6e23c4ed470c4..f946218809a4f 100644 --- a/test/SILGen/lit.local.cfg +++ b/test/SILGen/lit.local.cfg @@ -2,6 +2,6 @@ config.substitutions = list(config.substitutions) config.substitutions.insert(0, ('%build-silgen-test-overlays', - '%target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module -o %t %S/Inputs/ObjectiveC.swift && ' - '%target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module -o %t %S/Inputs/Dispatch.swift && ' - '%target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module -o %t %S/Inputs/Foundation.swift')) + '%target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module -enable-objc-interop -o %t %S/Inputs/ObjectiveC.swift && ' + '%target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module -enable-objc-interop -o %t %S/Inputs/Dispatch.swift && ' + '%target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module -enable-objc-interop -o %t %S/Inputs/Foundation.swift')) diff --git a/test/SILGen/lying_about_optional_return_objc.swift b/test/SILGen/lying_about_optional_return_objc.swift index eee389dbeb47e..e9f116241cdec 100644 --- a/test/SILGen/lying_about_optional_return_objc.swift +++ b/test/SILGen/lying_about_optional_return_objc.swift @@ -1,5 +1,4 @@ -// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/block_property_in_objc_class.h -enable-sil-ownership %s | %FileCheck %s -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -enable-objc-interop -import-objc-header %S/Inputs/block_property_in_objc_class.h -enable-sil-ownership %s | %FileCheck %s // CHECK-LABEL: sil hidden @$S32lying_about_optional_return_objc0C37ChainingForeignFunctionTypeProperties{{[_0-9a-zA-Z]*}}F func optionalChainingForeignFunctionTypeProperties(b: BlockProperty?) { diff --git a/test/SILGen/metatype_in_init_delegation.swift b/test/SILGen/metatype_in_init_delegation.swift index 26b09e2a1a9d2..62cb2037ee6c1 100644 --- a/test/SILGen/metatype_in_init_delegation.swift +++ b/test/SILGen/metatype_in_init_delegation.swift @@ -1,4 +1,7 @@ -// RUN: %target-swift-emit-silgen -verify %s +// RUN: %empty-directory(%t) +// RUN: %build-silgen-test-overlays +// RUN: %target-swift-emit-silgen(mock-sdk: -sdk %S/Inputs -I %t) -verify %s -sdk %S/Inputs -enable-objc-interop + // REQUIRES: objc_interop import Foundation diff --git a/test/SILGen/metatype_object_conversion.swift b/test/SILGen/metatype_object_conversion.swift index 990efbd7944b8..a483a8c34660a 100644 --- a/test/SILGen/metatype_object_conversion.swift +++ b/test/SILGen/metatype_object_conversion.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -enable-sil-ownership -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -enable-sil-ownership -sdk %S/Inputs -I %S/Inputs -enable-source-import -enable-objc-interop %s | %FileCheck %s import Foundation diff --git a/test/SILGen/objc_bridged_block_optionality_diff.swift b/test/SILGen/objc_bridged_block_optionality_diff.swift index 27d3637f9241a..1751585e2a365 100644 --- a/test/SILGen/objc_bridged_block_optionality_diff.swift +++ b/test/SILGen/objc_bridged_block_optionality_diff.swift @@ -1,5 +1,5 @@ -// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) %s -import-objc-header %S/Inputs/objc_bridged_block_optionality_diff.h -verify -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -enable-objc-interop -import-objc-header %S/Inputs/objc_bridged_block_optionality_diff.h -verify %s + import Foundation TheHandlerBlock = { x in () } diff --git a/test/SILGen/objc_bridged_generic_conformance.swift b/test/SILGen/objc_bridged_generic_conformance.swift index 18638441e5ec4..d17c5854a06dd 100644 --- a/test/SILGen/objc_bridged_generic_conformance.swift +++ b/test/SILGen/objc_bridged_generic_conformance.swift @@ -1,5 +1,4 @@ -// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) %s -import-objc-header %S/Inputs/objc_bridged_generic_conformance.h -verify -enable-sil-ownership -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) %s -enable-objc-interop -import-objc-header %S/Inputs/objc_bridged_generic_conformance.h -verify -enable-sil-ownership protocol P { func test() } diff --git a/test/SILGen/objc_dealloc.swift b/test/SILGen/objc_dealloc.swift index 1431234cc28ae..8073a5d62c760 100644 --- a/test/SILGen/objc_dealloc.swift +++ b/test/SILGen/objc_dealloc.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import gizmo diff --git a/test/SILGen/objc_deprecated_objc_thunks.swift b/test/SILGen/objc_deprecated_objc_thunks.swift index 9758bb6efeb6f..f1886e9921b6a 100644 --- a/test/SILGen/objc_deprecated_objc_thunks.swift +++ b/test/SILGen/objc_deprecated_objc_thunks.swift @@ -1,8 +1,5 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -I %S/Inputs -enable-source-import -enable-swift3-objc-inference -swift-version 4 -enable-sil-ownership | %FileCheck -check-prefix CHECK-SWIFT4 %s - -// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -enable-sil-ownership -I %S/Inputs -enable-source-import -swift-version 3 | %FileCheck -check-prefix CHECK-SWIFT3 %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -I %S/Inputs -enable-source-import -enable-swift3-objc-inference -swift-version 4 -enable-sil-ownership -enable-objc-interop | %FileCheck -check-prefix CHECK-SWIFT4 %s +// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -enable-sil-ownership -I %S/Inputs -enable-source-import -swift-version 3 -enable-objc-interop | %FileCheck -check-prefix CHECK-SWIFT3 %s import Foundation diff --git a/test/SILGen/objc_enum_unused_witnesses.swift b/test/SILGen/objc_enum_unused_witnesses.swift index fd1e0c19deaa1..f2e650b630376 100644 --- a/test/SILGen/objc_enum_unused_witnesses.swift +++ b/test/SILGen/objc_enum_unused_witnesses.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import gizmo diff --git a/test/SILGen/objc_imported_init.swift b/test/SILGen/objc_imported_init.swift index cb2edc5ecc0f8..bc9a83103c012 100644 --- a/test/SILGen/objc_imported_init.swift +++ b/test/SILGen/objc_imported_init.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -verify -sdk %S/Inputs -I %S/Inputs -enable-source-import -enable-sil-ownership %s | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -verify -sdk %S/Inputs -I %S/Inputs -enable-source-import -enable-sil-ownership %s -enable-objc-interop | %FileCheck %s import Foundation diff --git a/test/SILGen/objc_init_ref_delegation.swift b/test/SILGen/objc_init_ref_delegation.swift index a3424a76ab3b2..04336225948c9 100644 --- a/test/SILGen/objc_init_ref_delegation.swift +++ b/test/SILGen/objc_init_ref_delegation.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import gizmo diff --git a/test/SILGen/objc_metatypes.swift b/test/SILGen/objc_metatypes.swift index 311f341c25b7d..9bb3955861e6b 100644 --- a/test/SILGen/objc_metatypes.swift +++ b/test/SILGen/objc_metatypes.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -disable-objc-attr-requires-foundation-module -enable-sil-ownership | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -disable-objc-attr-requires-foundation-module -enable-sil-ownership -enable-objc-interop | %FileCheck %s import gizmo diff --git a/test/SILGen/objc_ownership_conventions.swift b/test/SILGen/objc_ownership_conventions.swift index 2a75202837fba..c953c5b062a19 100644 --- a/test/SILGen/objc_ownership_conventions.swift +++ b/test/SILGen/objc_ownership_conventions.swift @@ -1,7 +1,4 @@ - -// RUN: %target-swift-emit-silgen -module-name objc_ownership_conventions -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -module-name objc_ownership_conventions -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-sil-ownership -enable-objc-interop | %FileCheck %s import gizmo diff --git a/test/SILGen/objc_selector.swift b/test/SILGen/objc_selector.swift index 6a0aa4f8bdd26..82b905bff557e 100644 --- a/test/SILGen/objc_selector.swift +++ b/test/SILGen/objc_selector.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-sil -enable-sil-ownership -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-sil -enable-sil-ownership -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-objc-interop | %FileCheck %s import ObjectiveC import Foundation diff --git a/test/SILGen/objc_subscript.swift b/test/SILGen/objc_subscript.swift index 6033f843736b0..696eb6732b75f 100644 --- a/test/SILGen/objc_subscript.swift +++ b/test/SILGen/objc_subscript.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -enable-sil-ownership %s -emit-verbose-sil -disable-objc-attr-requires-foundation-module | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -enable-sil-ownership %s -emit-verbose-sil -enable-objc-interop -disable-objc-attr-requires-foundation-module | %FileCheck %s @objc class ObjCClass {} diff --git a/test/SILGen/objc_super.swift b/test/SILGen/objc_super.swift index 6e27f02c5f3c0..5905027734b04 100644 --- a/test/SILGen/objc_super.swift +++ b/test/SILGen/objc_super.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -enable-sil-ownership -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -enable-sil-ownership -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-objc-interop | %FileCheck %s import gizmo diff --git a/test/SILGen/protocol_cast_toplevel.swift b/test/SILGen/protocol_cast_toplevel.swift index 1cf11c868deb4..638855cc781da 100644 --- a/test/SILGen/protocol_cast_toplevel.swift +++ b/test/SILGen/protocol_cast_toplevel.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen %s -disable-objc-attr-requires-foundation-module -enable-sil-ownership - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen %s -enable-objc-interop -disable-objc-attr-requires-foundation-module -enable-sil-ownership @objc protocol Unrelated {} diff --git a/test/SILGen/protocol_resilience_objc.swift b/test/SILGen/protocol_resilience_objc.swift index 9478206f7edae..a6a565e0e6f07 100644 --- a/test/SILGen/protocol_resilience_objc.swift +++ b/test/SILGen/protocol_resilience_objc.swift @@ -1,5 +1,4 @@ -// RUN: %target-swift-emit-silgen -disable-objc-attr-requires-foundation-module -enable-sil-ownership -enable-resilience %s | %FileCheck %s --check-prefix=CHECK -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -enable-objc-interop -disable-objc-attr-requires-foundation-module -enable-sil-ownership -enable-resilience %s | %FileCheck %s --check-prefix=CHECK // @objc protocols don't need default witness tables @objc public protocol ObjCProtocol { diff --git a/test/SILGen/super_objc_class_method.swift b/test/SILGen/super_objc_class_method.swift index 538b454ff7bca..89cf3c699804b 100644 --- a/test/SILGen/super_objc_class_method.swift +++ b/test/SILGen/super_objc_class_method.swift @@ -1,6 +1,4 @@ -// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s - -// REQUIRES: objc_interop +// RUN: %target-swift-emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -enable-objc-interop | %FileCheck %s import Foundation class MyFunkyDictionary: NSDictionary { diff --git a/test/SILGen/without_actually_escaping_block.swift b/test/SILGen/without_actually_escaping_block.swift index 98b2b26b215ad..8001c52690f12 100644 --- a/test/SILGen/without_actually_escaping_block.swift +++ b/test/SILGen/without_actually_escaping_block.swift @@ -1,4 +1,6 @@ -// RUN: %target-swift-emit-silgen -module-name without_actually_escaping -enable-sil-ownership %s | %FileCheck %s +// RUN: %empty-directory(%t) +// RUN: %build-silgen-test-overlays +// RUN: %target-swift-emit-silgen(mock-sdk: -sdk %S/Inputs -I %t) -module-name without_actually_escaping -enable-sil-ownership %s -sdk %S/Inputs -enable-objc-interop | %FileCheck %s // REQUIRES: objc_interop