Add a mode to test implicit dynamic with private imports

This commit is contained in:
Arnold Schwaighofer
2019-03-18 09:25:30 -07:00
parent 384882d5f3
commit e113ef8c93
109 changed files with 330 additions and 7 deletions

View File

@@ -135,6 +135,7 @@ set(profdata_merge_worker
set(TEST_MODES
optimize_none optimize optimize_unchecked optimize_size
optimize_none_with_implicit_dynamic
only_executable only_non_executable
)
set(TEST_SUBSETS

View File

@@ -11,6 +11,8 @@
// RUN: %target-run %t/report_dead_method_call
// REQUIRES: executable_test
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
private protocol PrivateProto {
func abc()
}

View File

@@ -4,6 +4,9 @@
// REQUIRES: objc_interop
// UNSUPPORTED: OS=tvos
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import MapKit
let rect = MKMapRectMake(1.0, 2.0, 3.0, 4.0)

View File

@@ -11,6 +11,9 @@
// REQUIRES: objc_interop
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import UsingObjCStuff
print("Let's go") // CHECK: Let's go

View File

@@ -4,6 +4,9 @@
// REQUIRES: executable_test
// REQUIRES: OS=macosx
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import AppKit
let image = NSImage(named: NSImage.Name.trashEmpty)

View File

@@ -15,6 +15,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires explicit swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import Foundation

View File

@@ -7,6 +7,9 @@
// REQUIRES: executable_test
// REQUIRES: OS=macosx
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import AppKit
import StdlibUnittest

View File

@@ -7,6 +7,8 @@
// REQUIRES: executable_test
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
@_private(sourceFile: "dynamic_replacement_property_observer_orig.swift") import TestDidWillSet
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)

View File

@@ -2,6 +2,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import Foundation
// rdar://problem/36477954

View File

@@ -18,6 +18,9 @@
// REQUIRES: executable_test
// This test flips the chaining flag.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import A
import StdlibUnittest

View File

@@ -5,6 +5,9 @@
// RUN: %target-run %t/a.out
// REQUIRES: executable_test
// Requires explicit swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
// Tests for traps at run time when enforcing exclusive access.
import StdlibUnittest

View File

@@ -8,6 +8,9 @@
// REQUIRES: executable_test
// REQUIRES: swift_interpreter
// JIT runs in swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import complex
func printDensity(_ d: Int) {

View File

@@ -8,6 +8,9 @@
// REQUIRES: executable_test
// REQUIRES: swift_interpreter
// JIT runs in swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import complex
func printDensity(_ d: Int) {

View File

@@ -6,6 +6,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires explicit swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import Foundation
#if FOUNDATION_XCTEST

View File

@@ -19,6 +19,8 @@
// REQUIRES: executable_test
// REQUIRES: OS=macosx
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
// SIL-LABEL: // pgo_foreach.guessForEach1
// SIL-LABEL: sil @$s11pgo_foreach13guessForEach11xs5Int32VAE_tF : $@convention(thin) (Int32) -> Int32 !function_entry_count(42) {
// IR-LABEL: define swiftcc i32 @$s9pgo_foreach10guessWhiles5Int32VAD1x_tF

View File

@@ -16,6 +16,8 @@
// REQUIRES: executable_test
// REQUIRES: CPU=x86_64
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
import Darwin

View File

@@ -493,6 +493,14 @@ if swift_test_mode == 'optimize_none':
# optimize mode for a cpu.
config.available_features.add("swift_test_mode_optimize_none_" + run_cpu)
swift_execution_tests_extra_flags = ''
elif swift_test_mode == 'optimize_none_with_implicit_dynamic':
config.available_features.add("executable_test")
config.limit_to_features.add("executable_test")
config.available_features.add("swift_test_mode_optimize_none_with_implicit_dynamic")
# Add the cpu as a feature so we can selectively disable tests in an
# optimize mode for a cpu.
config.available_features.add("swift_test_mode_optimize_none_" + run_cpu)
swift_execution_tests_extra_flags = '-Xfrontend -enable-implicit-dynamic -Xfrontend -enable-private-imports -Xfrontend -enable-dynamic-replacement-chaining -swift-version 5'
elif swift_test_mode == 'optimize':
config.available_features.add("executable_test")
config.limit_to_features.add("executable_test")

View File

@@ -7,6 +7,9 @@
// CoreMedia is not present on watchOS.
// UNSUPPORTED: OS=watchos
// Requires swift-version 5
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import AVFoundation
import StdlibUnittest

View File

@@ -21,6 +21,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import Foundation
import ArrayBridgeObjC
import StdlibUnittest

View File

@@ -12,6 +12,9 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest

View File

@@ -11,9 +11,9 @@ struct A {
}
func A_x_keypath() -> WritableKeyPath<A, Int> {
return \A.x
return \A.x as! WritableKeyPath<A, Int>
}
func A_subscript_0_keypath() -> WritableKeyPath<A, Int> {
return \A.[0]
return \A.[0] as! WritableKeyPath<A, Int>
}

View File

@@ -17,6 +17,9 @@
// FIXME: this test runs forever on iOS arm64
// REQUIRES: OS=macosx
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
%{
word_bits = int(WORD_BITS) / 2
from SwiftIntTypes import all_integer_types

View File

@@ -12,6 +12,9 @@
// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
// Check that the generic parameters are called 'Base' and 'Element'.
protocol TestProtocol1 {}

View File

@@ -3,6 +3,9 @@
// RUN: %target-build-swift %s -o %t/a.out5 -swift-version 5 && %target-codesign %t/a.out5 && %target-run %t/a.out5
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
#if swift(>=5)

View File

@@ -5,6 +5,9 @@
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import Metal

View File

@@ -5,6 +5,9 @@
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import Metal

View File

@@ -4,6 +4,9 @@
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
//
// Tests for the NSString APIs on Substring
//

View File

@@ -9,6 +9,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
//
// DO NOT add more tests to this file. Add them to test/1_stdlib/Runtime.swift.
//

View File

@@ -3,6 +3,9 @@
// RUN: %target-build-swift %s -o %t/a.out5 -swift-version 5 && %target-codesign %t/a.out5 && %target-run %t/a.out5
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
#if swift(>=4.2)

View File

@@ -7,6 +7,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import Swift
import StdlibUnittest

View File

@@ -1,6 +1,9 @@
// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -o %t/a.out4 -swift-version 4 && %target-codesign %t/a.out4 && %target-run %t/a.out4
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
// REQUIRES: executable_test
import StdlibUnittest

View File

@@ -3,6 +3,9 @@
// REQUIRES: executable_test
// Needs swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest

View File

@@ -17,6 +17,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import Foundation
import Dispatch
import ObjectiveC

View File

@@ -10,6 +10,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import Foundation
#if FOUNDATION_XCTEST

View File

@@ -10,6 +10,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import Foundation
#if FOUNDATION_XCTEST

View File

@@ -1,6 +1,9 @@
// RUN: %target-run-simple-swiftgyb
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest

View File

@@ -1,6 +1,9 @@
// RUN: %target-run-simple-swiftgyb
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
var UnsafeMutableRawPointerExtraTestSuite =

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test --backward-deployment
// REQUIRES: executable_test
// Uses swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import backward_deploy_always_emit_into_client

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test --backward-deployment
// REQUIRES: executable_test
// Uses swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import backward_deploy_class

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test --backward-deployment
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import backward_deploy_enum

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test --backward-deployment
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import backward_deploy_protocol

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test --backward-deployment
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import backward_deploy_struct

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test --backward-deployment
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import backward_deploy_top_level

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import bitwise_takable

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import change_default_argument_to_magic

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_add_convenience_init

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_add_deinit

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_add_property

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_add_property_attribute

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_add_property_subclass

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_change_lazy_to_computed

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_change_size

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_change_stored_to_computed

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_change_stored_to_observed

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_fixed_layout_add_virtual_method

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_fixed_layout_add_virtual_method_subclass

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_fixed_layout_superclass_reorder_methods

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_insert_superclass

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_remove_property

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_resilient_add_override

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_resilient_add_virtual_method

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_resilient_add_virtual_method_subclass

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_resilient_superclass_methods

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_resilient_superclass_properties

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import class_resilient_superclass_reorder_methods

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test --no-symbol-diff
// REQUIRES: executable_test
// Uses swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import conformance_reference
@@ -36,4 +39,4 @@ ConformanceReferenceTest.test("EvenMoreDerivedConformance") {
expectTrue(FirstGeneric<String>.self == useEvenMoreDerived(FirstGeneric<String>()))
}
runAllTests()
runAllTests()

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import enum_add_cases

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import enum_add_cases_trap

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import enum_change_size

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import enum_reorder_cases
import StdlibUnittest

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import function_change_transparent_body

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import generic_resilient_struct_add_property

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import global_change_size

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import global_stored_to_computed

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import keypath_default_argument

View File

@@ -7,6 +7,9 @@
// REQUIRES: executable_test
// Uses swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import keypaths
import StdlibUnittest

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import move_method_to_extension

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import protocol_add_requirements

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import protocol_reorder_requirements

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
// Check for the 'rth' tool itself, to make sure it's doing what we expect.
import rth

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_add_initializer

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_add_property

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_add_property_attribute

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_change_lazy_to_computed

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_change_size

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_change_stored_to_computed

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_change_stored_to_computed_static

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Uses swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_change_stored_to_observed

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_fixed_layout_add_conformance

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_fixed_layout_remove_conformance

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_remove_property

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_resilient_add_conformance

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_resilient_remove_conformance

View File

@@ -1,6 +1,9 @@
// RUN: %target-resilience-test
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import struct_static_stored_to_computed

View File

@@ -10,6 +10,9 @@
// RUN: %target-codesign %t/Array && %line-directive %t/main.swift -- %target-run %t/Array
// REQUIRES: executable_test
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import StdlibCollectionUnittest

View File

@@ -4,6 +4,9 @@
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Requires swift-version 4
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import Foundation

View File

@@ -25,6 +25,9 @@ variations = [
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import StdlibCollectionUnittest

View File

@@ -8,6 +8,9 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import StdlibCollectionUnittest
@@ -15,12 +18,12 @@ var CollectionTests = TestSuite("Collection")
// Test collections using value types as elements.
CollectionTests.addBidirectionalCollectionTests(
makeCollection: { (elements: [OpaqueValue<Int>]) -> LazyMapCollection<MinimalBidirectionalCollection<OpaqueValue<Int>>, OpaqueValue<Int>> in
makeCollection: { (elements: [OpaqueValue<Int>]) -> LazyMapBidirectionalCollection<MinimalBidirectionalCollection<OpaqueValue<Int>>, OpaqueValue<Int>> in
MinimalBidirectionalCollection(elements: elements).lazy.map(identity)
},
wrapValue: identity,
extractValue: identity,
makeCollectionOfEquatable: { (elements: [MinimalEquatableValue]) -> LazyMapCollection<MinimalBidirectionalCollection<MinimalEquatableValue>, MinimalEquatableValue> in
makeCollectionOfEquatable: { (elements: [MinimalEquatableValue]) -> LazyMapBidirectionalCollection<MinimalBidirectionalCollection<MinimalEquatableValue>, MinimalEquatableValue> in
MinimalBidirectionalCollection(elements: elements).lazy.map(identityEq)
},
wrapValueIntoEquatable: identityEq,
@@ -29,7 +32,7 @@ CollectionTests.addBidirectionalCollectionTests(
// Test collections using reference types as elements.
CollectionTests.addBidirectionalCollectionTests(
makeCollection: { (elements: [LifetimeTracked]) -> LazyMapCollection<MinimalBidirectionalCollection<LifetimeTracked>, LifetimeTracked> in
makeCollection: { (elements: [LifetimeTracked]) -> LazyMapBidirectionalCollection<MinimalBidirectionalCollection<LifetimeTracked>, LifetimeTracked> in
MinimalBidirectionalCollection(elements: elements).lazy.map { $0 }
},
wrapValue: { (element: OpaqueValue<Int>) in
@@ -38,7 +41,7 @@ CollectionTests.addBidirectionalCollectionTests(
extractValue: { (element: LifetimeTracked) in
OpaqueValue(element.value, identity: element.identity)
},
makeCollectionOfEquatable: { (elements: [LifetimeTracked]) -> LazyMapCollection<MinimalBidirectionalCollection<LifetimeTracked>, LifetimeTracked> in
makeCollectionOfEquatable: { (elements: [LifetimeTracked]) -> LazyMapBidirectionalCollection<MinimalBidirectionalCollection<LifetimeTracked>, LifetimeTracked> in
MinimalBidirectionalCollection(elements: elements).lazy.map { $0 }
},
wrapValueIntoEquatable: { (element: MinimalEquatableValue) in

View File

@@ -8,6 +8,9 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import StdlibCollectionUnittest

View File

@@ -8,6 +8,9 @@
// RUN: %target-run-simple-swift
// REQUIRES: executable_test
// Use swift-version 4.
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
import StdlibUnittest
import StdlibCollectionUnittest

Some files were not shown because too many files have changed in this diff Show More