mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
NCGenerics: it's no longer "experimental"
resolves rdar://127701059
This commit is contained in:
@@ -179,6 +179,7 @@ LANGUAGE_FEATURE(MoveOnlyPartialConsumption, 429, "Partial consumption of noncop
|
||||
/// Enable bitwise-copyable feature.
|
||||
LANGUAGE_FEATURE(BitwiseCopyable, 426, "BitwiseCopyable protocol")
|
||||
SUPPRESSIBLE_LANGUAGE_FEATURE(ConformanceSuppression, 426, "Suppressible inferred conformances")
|
||||
SUPPRESSIBLE_LANGUAGE_FEATURE(NoncopyableGenerics, 427, "Noncopyable generics")
|
||||
|
||||
// Swift 6
|
||||
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)
|
||||
@@ -324,9 +325,6 @@ EXPERIMENTAL_FEATURE(Embedded, true)
|
||||
/// Enables importing the Volatile module
|
||||
EXPERIMENTAL_FEATURE(Volatile, true)
|
||||
|
||||
/// Enables noncopyable generics
|
||||
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(NoncopyableGenerics, true)
|
||||
|
||||
// Alias for NoncopyableGenerics
|
||||
EXPERIMENTAL_FEATURE(NoncopyableGenerics2, true)
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-sil-opt -transfer-non-sendable -enable-upcoming-feature RegionBasedIsolation -strict-concurrency=complete %s -verify -o /dev/null
|
||||
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -transfer-non-sendable -enable-upcoming-feature RegionBasedIsolation -strict-concurrency=complete %s -verify -o /dev/null
|
||||
|
||||
// REQUIRES: concurrency
|
||||
// REQUIRES: asserts
|
||||
@@ -1797,4 +1796,4 @@ bb0:
|
||||
|
||||
%9999 = tuple ()
|
||||
return %9999 : $()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes %s -verify
|
||||
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -enable-experimental-feature NonescapableTypes %s -verify
|
||||
|
||||
// REQUIRES: objc_interop
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// The restriction is that we don't permit suppression requirements on
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %target-typecheck-verify-swift \
|
||||
// RUN: -parse-stdlib -module-name Swift \
|
||||
// RUN: -enable-experimental-feature MoveOnlyClasses \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: -enable-experimental-feature MoveOnlyClasses
|
||||
|
||||
// NOTE: -parse-stdlib is a transitional workaround and should not be required.
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %target-typecheck-verify-swift \
|
||||
// RUN: -parse-stdlib -module-name Swift \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: -parse-stdlib -module-name Swift
|
||||
|
||||
// NOTE: -parse-stdlib is a transitional workaround and should not be required.
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
|
||||
|
||||
// a concrete move-only type
|
||||
struct MO: ~Copyable {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: %target-typecheck-verify-swift
|
||||
|
||||
// a concrete move-only type
|
||||
struct MO: ~Copyable {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-frontend \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -verify -typecheck %s -debug-generic-signatures \
|
||||
// RUN: -debug-inverse-requirements 2>&1 | %FileCheck %s --implicit-check-not "error:"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -parse-stdlib -module-name Swift -enable-experimental-feature BuiltinModule -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes
|
||||
// RUN: %target-typecheck-verify-swift -parse-stdlib -module-name Swift -enable-experimental-feature BuiltinModule -enable-experimental-feature NonescapableTypes
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: %target-typecheck-verify-swift
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: %target-typecheck-verify-swift
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-frontend %s -emit-silgen -enable-experimental-feature NoncopyableGenerics > /dev/null
|
||||
// RUN: %target-swift-frontend %s -emit-silgen > /dev/null
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes -enable-experimental-feature SuppressedAssociatedTypes
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NonescapableTypes -enable-experimental-feature SuppressedAssociatedTypes
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-frontend \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -verify -typecheck %s -debug-generic-signatures \
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %target-swift-frontend \
|
||||
// RUN: -emit-ir %s -swift-version 5 \
|
||||
// RUN: -disable-availability-checking \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -module-name existential_shape_metadata | %IRGenFileCheck %s
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend -emit-ir -o - %s -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -parse-as-library \
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-irgen \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -disable-type-layout \
|
||||
// RUN: %s \
|
||||
// RUN: | \
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-irgen -O \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -disable-type-layout \
|
||||
// RUN: %s \
|
||||
// RUN: | \
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-irgen -Onone \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: %s \
|
||||
// RUN: | \
|
||||
// RUN: %IRGenFileCheck %s
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend -emit-ir -o - %s -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -parse-as-library \
|
||||
// RUN: -enable-library-evolution \
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=swift-6 -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
|
||||
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=upcoming-swift -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
|
||||
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=swift-6 %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
|
||||
// RUN: %target-swift-emit-irgen -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %s -validate-tbd-against-ir=none -Xcc -fignore-exceptions | %FileCheck %s
|
||||
|
||||
import MoveOnlyCxxValueType
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=swift-6 -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none | %FileCheck %s
|
||||
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=upcoming-swift -enable-experimental-feature NoncopyableGenerics %s -validate-tbd-against-ir=none | %FileCheck %s
|
||||
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=swift-6 %s -validate-tbd-against-ir=none | %FileCheck %s
|
||||
// RUN: %target-swift-emit-sil -I %S/Inputs -cxx-interoperability-mode=upcoming-swift %s -validate-tbd-against-ir=none | %FileCheck %s
|
||||
|
||||
import MoveOnlyCxxValueType
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-run-simple-swift | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NonescapableTypes) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NonescapableTypes) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test, asserts
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics
|
||||
// REQUIRES: executable_test
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
// RUN: %target-run %t/a.out | %FileCheck --check-prefix CHECK %s
|
||||
// RUN: %target-run %t/a.out.optimized | %FileCheck --check-prefix CHECK %s
|
||||
|
||||
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -Onone %s -o %t/a.out
|
||||
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -O %s -o %t/a.out.optimized
|
||||
// RUN: %target-build-swift -Onone %s -o %t/a.out
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out.optimized
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-codesign %t/a.out.optimized
|
||||
//
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
// RUN: %target-codesign %t/a.out.optimized
|
||||
// RUN: %target-run %t/a.out.optimized | %FileCheck %s
|
||||
|
||||
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -Onone %s -o %t/a.out
|
||||
// RUN: %target-build-swift -Onone %s -o %t/a.out
|
||||
// RUN: %target-codesign %t/a.out
|
||||
// RUN: %target-run %t/a.out | %FileCheck %s
|
||||
// RUN: %target-build-swift -enable-experimental-feature NoncopyableGenerics -O %s -o %t/a.out.optimized
|
||||
// RUN: %target-build-swift -O %s -o %t/a.out.optimized
|
||||
// RUN: %target-codesign %t/a.out.optimized
|
||||
// RUN: %target-run %t/a.out.optimized | %FileCheck %s
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
struct S : ~Copyable {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
public struct BufferView<T>: ~Copyable {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all)
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all)
|
||||
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all)
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all)
|
||||
|
||||
// REQUIRES: executable_test
|
||||
@_moveOnly
|
||||
struct FileDescriptor {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@_moveOnly
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
|
||||
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -enable-experimental-feature -Xfrontend MoveOnlyEnumDeinits -Xfrontend -sil-verify-all) | %FileCheck %s --implicit-check-not closing
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
// NOTE: it's important that this test has the `--implicit-check-not closing` flag to catch double deinits!!
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@_moveOnly
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
@_moveOnly
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-move-only)
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -Xfrontend -enable-experimental-move-only)
|
||||
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -enable-experimental-move-only)
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all -Xfrontend -enable-experimental-move-only)
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
// Verify that iterating through the fields of an object whose class has
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics)
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics)
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all)
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all)
|
||||
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// RUN: %target-swift-emit-sil %s -DBAD_COPY -verify -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
|
||||
// RUN: %target-swift-emit-sil %s -DBAD_COPY -verify -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes)
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes)
|
||||
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes)
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature SuppressedAssociatedTypes)
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all)
|
||||
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules)
|
||||
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all)
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all)
|
||||
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules)
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
/// A class that we use as a box to store the memory for one of our linked list
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
// RUN: %target-swift-emit-irgen \
|
||||
// RUN: -parse-as-library \
|
||||
// RUN: -enable-builtin-module \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature BorrowingSwitch \
|
||||
// RUN: %s \
|
||||
// RUN: | \
|
||||
// RUN: %FileCheck %s --check-prefix=CHECK-IR
|
||||
// RUN: %target-run-simple-swift(-parse-as-library -enable-builtin-module -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -parse-as-library -enable-builtin-module -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -parse-as-library -enable-builtin-module -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-parse-as-library -enable-builtin-module -enable-experimental-feature BorrowingSwitch -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -parse-as-library -enable-builtin-module -enable-experimental-feature BorrowingSwitch -Xfrontend -sil-verify-all) | %FileCheck %s
|
||||
// RUN: %target-run-simple-swift(-O -parse-as-library -enable-builtin-module -enable-experimental-feature BorrowingSwitch -Xfrontend -sil-verify-all -Xfrontend -enable-ossa-modules) | %FileCheck %s
|
||||
|
||||
// REQUIRES: executable_test
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
// RUN: -module-name Swiftskell \
|
||||
// RUN: -parse-as-library \
|
||||
// RUN: %S/../Inputs/Swiftskell.swift -c -o %t/Swiftskell.o \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature BorrowingSwitch
|
||||
|
||||
@@ -26,4 +25,4 @@
|
||||
import Swiftskell
|
||||
|
||||
print("hello, world")
|
||||
// CHECK: hello, world
|
||||
// CHECK: hello, world
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// RUN: %target-run-simple-swift -enable-experimental-feature NoncopyableGenerics
|
||||
// REQUIRES: executable_test
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name Test -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes
|
||||
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name Test -enable-experimental-feature SuppressedAssociatedTypes
|
||||
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name Test
|
||||
// RUN: %FileCheck %s < %t.swiftinterface
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// RUN: -swift-version 5 \
|
||||
// RUN: -enable-library-evolution \
|
||||
// RUN: -emit-module -module-name Swift -parse-stdlib \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -o %t/Swift.swiftmodule \
|
||||
// RUN: -emit-module-interface-path %t/Swift.swiftinterface
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
|
||||
// RUN: %target-swift-frontend -swift-version 5 -enable-library-evolution -emit-module \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -o %t/lifetime_dependence.swiftmodule \
|
||||
// RUN: -emit-module-interface-path %t/lifetime_dependence.swiftinterface \
|
||||
@@ -15,12 +14,10 @@
|
||||
// See if we can compile a module through just the interface and typecheck using it.
|
||||
|
||||
// RUN: %target-swift-frontend -compile-module-from-interface \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: %t/lifetime_dependence.swiftinterface -o %t/lifetime_dependence.swiftmodule
|
||||
|
||||
// RUN: %target-swift-frontend -typecheck -I %t %s \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
import lifetime_dependence
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
|
||||
// RUN: %target-swift-frontend -swift-version 5 -enable-library-evolution -emit-module \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -o %t/NoncopyableGenerics_Misc.swiftmodule \
|
||||
@@ -9,7 +8,6 @@
|
||||
// RUN: %S/Inputs/NoncopyableGenerics_Misc.swift
|
||||
|
||||
// RUN: %target-swift-frontend -swift-version 5 -enable-library-evolution -emit-module \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature BorrowingSwitch \
|
||||
@@ -25,19 +23,16 @@
|
||||
// See if we can compile a module through just the interface and typecheck using it.
|
||||
|
||||
// RUN: %target-swift-frontend -compile-module-from-interface \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: %t/NoncopyableGenerics_Misc.swiftinterface -o %t/NoncopyableGenerics_Misc.swiftmodule
|
||||
|
||||
// RUN: %target-swift-frontend -compile-module-from-interface \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: %t/Swiftskell.swiftinterface -o %t/Swiftskell.swiftmodule
|
||||
|
||||
// RUN: %target-swift-frontend -emit-silgen -I %t %s \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -o %t/final.silgen
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-experimental-feature NonescapableTypes -enable-experimental-feature NoncopyableGenerics -enable-builtin-module
|
||||
// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-experimental-feature NonescapableTypes -enable-builtin-module
|
||||
// REQUIRES: asserts
|
||||
|
||||
import Builtin
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: %target-typecheck-verify-swift
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature SuppressedAssociatedTypes
|
||||
// RUN: %target-typecheck-verify-swift -enable-experimental-feature SuppressedAssociatedTypes
|
||||
|
||||
protocol U {}
|
||||
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
// RUN: %target-sil-opt \
|
||||
// RUN: %s \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: | \
|
||||
// RUN: %target-sil-opt \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: | \
|
||||
// RUN: %FileCheck %s
|
||||
|
||||
// For -enable-experimental-feature NoncopyableGenerics/NonescapableTypes
|
||||
// For -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
// TODO: Once NoncopyableGenerics/NonescapableTypes is no longer behind a feature flag, merge this into basic2.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %target-sil-opt %s \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
// RUN: -enable-experimental-feature NonescapableTypes | %FileCheck %s
|
||||
|
||||
sil_stage canonical
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// RUN: %target-swift-frontend %s \
|
||||
// RUN: -emit-sil \
|
||||
// RUN: -enable-builtin-module \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
// RUN: -enable-experimental-feature NonescapableTypes | %FileCheck %s
|
||||
|
||||
|
||||
import Builtin
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %target-swift-frontend %s \
|
||||
// RUN: -emit-sil -disable-availability-checking \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
// RUN: -enable-experimental-feature NonescapableTypes | %FileCheck %s
|
||||
// REQUIRES: asserts
|
||||
|
||||
struct BufferView : ~Escapable {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %target-swift-frontend %s -emit-sil \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
// REQUIRES: swift_in_compiler
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %target-swift-frontend %s -emit-sil \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics | %FileCheck %s
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes | %FileCheck %s
|
||||
|
||||
|
||||
protocol P {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-sil-opt -test-runner \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: %s -o /dev/null 2>&1 | %FileCheck %s
|
||||
|
||||
sil_stage raw
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// R N: %target-swift-frontend -enable-experimental-feature NonescapableTypes -enable-experimental-feature BuiltinModule -enable-experimental-feature NoncopyableGenerics -parse-stdlib -module-name Swift -DEMPTY -emit-sil -verify %s
|
||||
// R N: %target-swift-frontend -enable-experimental-feature NonescapableTypes -enable-experimental-feature BuiltinModule -parse-stdlib -module-name Swift -DEMPTY -emit-sil -verify %s
|
||||
|
||||
// RUN: %target-swift-frontend \
|
||||
// RUN: -emit-sil \
|
||||
@@ -7,7 +7,6 @@
|
||||
// RUN: -module-name Swift \
|
||||
// RUN: -disable-availability-checking \
|
||||
// RUN: -enable-experimental-feature BuiltinModule \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-builtin-module
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-emit-silgen -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -verify %s
|
||||
// RUN: %target-swift-emit-silgen -enable-experimental-feature BorrowingSwitch -verify %s
|
||||
func orElse<T: ~Copyable>(
|
||||
x: consuming T?,
|
||||
defaultValue: @autoclosure () throws -> T?
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-emit-silgen -enable-experimental-feature BorrowingSwitch -enable-experimental-feature NoncopyableGenerics -verify %s
|
||||
// RUN: %target-swift-emit-silgen -enable-experimental-feature BorrowingSwitch -verify %s
|
||||
|
||||
struct Box<Wrapped: ~Copyable>: ~Copyable {
|
||||
var wrapped: Wrapped {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-emit-silgen %s -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -parse-as-library \
|
||||
// RUN: > %t/test.silgen
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-emit-silgen %s -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: > %t/test.silgen
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
// RUN: %target-swift-emit-silgen -module-name test %s | %FileCheck %s --enable-var-scope
|
||||
// RUN: %target-swift-emit-silgen -enable-experimental-feature NoncopyableGenerics -module-name test %s | %FileCheck %s --enable-var-scope
|
||||
|
||||
// For -enable-experimental-feature NoncopyableGenerics
|
||||
|
||||
|
||||
class Retainable {}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// RUN: -emit-silgen \
|
||||
// RUN: %s \
|
||||
// RUN: -enable-experimental-feature BorrowingSwitch \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: | %FileCheck %s
|
||||
|
||||
enum MaybeMaybeVoid<Wrapped: ~Copyable>: ~Copyable {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-frontend -enable-experimental-feature NoncopyableGenerics -emit-sil -verify -primary-file %s
|
||||
// RUN: %target-swift-frontend -emit-sil -verify -primary-file %s
|
||||
|
||||
struct G<T: ~Copyable>: ~Copyable { }
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature NoncopyableGenerics -parse-stdlib -module-name Swift -verify %s
|
||||
// RUN: %target-swift-frontend -emit-sil -parse-stdlib -module-name Swift -verify %s
|
||||
|
||||
@_marker protocol Copyable {}
|
||||
@_marker protocol Escapable {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-frontend -emit-silgen -enable-experimental-feature NoncopyableGenerics -parse-stdlib -module-name Swift %s | %FileCheck %s
|
||||
// RUN: %target-swift-frontend -emit-silgen -parse-stdlib -module-name Swift %s | %FileCheck %s
|
||||
|
||||
@_marker protocol Copyable {}
|
||||
@_marker protocol Escapable {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %target-swift-frontend -emit-silgen -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NonescapableTypes -disable-availability-checking -module-name main %s | %FileCheck %s
|
||||
// RUN: %target-swift-frontend -emit-silgen -enable-experimental-feature NonescapableTypes -disable-availability-checking -module-name main %s | %FileCheck %s
|
||||
|
||||
protocol NoCopyP: ~Copyable {}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-sil-opt -enable-sil-verify-all %s -capture-promotion \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes -enable-experimental-feature NoncopyableGenerics -module-name Swift \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes -module-name Swift \
|
||||
// RUN: | %FileCheck %s
|
||||
|
||||
// Check to make sure that the process of promoting closure captures results in
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// RUN: -o /dev/null \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name Swift \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
// REQUIRES: swift_in_compiler
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
// REQUIRES: swift_in_compiler
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %target-swift-frontend %s -emit-sil \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: 2>&1 | %FileCheck %s
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature SuppressedAssociatedTypes \
|
||||
// RUN: -parse-stdlib -module-name Swift
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// RUN: -Xllvm -sil-print-after=lifetime-dependence-insertion \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -o /dev/null 2>&1 | %FileCheck %s
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature BorrowingSwitch
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// RUN: %target-swift-frontend %s -emit-sil \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -module-name test \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: 2>&1 | %FileCheck %s
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %target-swift-frontend %s -emit-sil -o /dev/null -verify \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// RUN: -o /dev/null \
|
||||
// RUN: -verify \
|
||||
// RUN: -sil-verify-all \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// RUN: %target-sil-opt -test-runner %s \
|
||||
// RUN: -module-name Swift \
|
||||
// RUN: -enable-experimental-feature NoncopyableGenerics \
|
||||
// RUN: -enable-experimental-feature NonescapableTypes \
|
||||
// RUN: -o /dev/null 2>&1 | %FileCheck %s
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// RUN: %target-sil-opt -module-name moveonly_addresschecker -emit-verbose-sil -sil-move-only-checker -enable-sil-verify-all %s | %FileCheck %s
|
||||
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -module-name moveonly_addresschecker -emit-verbose-sil -sil-move-only-checker -enable-sil-verify-all %s | %FileCheck %s
|
||||
|
||||
|
||||
sil_stage raw
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-sil -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyTuples %s
|
||||
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyTuples %s
|
||||
|
||||
// This test validates that we properly emit errors if we partially invalidate
|
||||
// through a type with a deinit.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-sil-opt -definite-init %s | %FileCheck %s
|
||||
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -definite-init %s | %FileCheck %s
|
||||
|
||||
// Make sure that DI properly converts mark_unresolved_non_copyable_value
|
||||
// [assignable_but_not_consumable] -> mark_unresolved_non_copyable_value
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// RUN: %target-swift-emit-sil -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy %s
|
||||
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy %s
|
||||
|
||||
|
||||
// This testStruct specifically testStructs how DI and the move checkers interact with each other
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all %s -verify
|
||||
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all -move-only-diagnostics-silently-emit-diagnostics %s | %FileCheck %s
|
||||
|
||||
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -sil-move-only-address-checker -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all %s -verify
|
||||
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -sil-move-only-address-checker -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all -move-only-diagnostics-silently-emit-diagnostics %s | %FileCheck %s
|
||||
|
||||
// This file contains specific SIL test cases that we expect to emit
|
||||
// diagnostics. These are cases where we want to make it easy to validate
|
||||
// independent of potential changes in the frontend's emission that this
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
|
||||
// RUN: %target-swift-emit-sil -enable-experimental-feature BorrowingSwitch -enable-experimental-feature NoncopyableGenerics -O -sil-verify-all -verify -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
|
||||
// RUN: %target-swift-emit-sil %s -O -sil-verify-all -verify -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses
|
||||
|
||||
//////////////////
|
||||
// Declarations //
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-sil -enable-experimental-feature NoImplicitCopy -sil-verify-all -verify -enable-library-evolution %s
|
||||
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature NoImplicitCopy -sil-verify-all -verify -enable-library-evolution %s
|
||||
|
||||
// This test is used to validate that we properly handle library evolution code
|
||||
// until we can get all of the normal moveonly_addresschecker_diagnostics test
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
|
||||
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
|
||||
|
||||
struct Test: ~Copyable {
|
||||
public let baseAddress: UnsafeRawPointer
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
|
||||
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
|
||||
|
||||
// Test diagnostics for partial-consumption without partial-reinitialization.
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user