Files
swift-mirror/test/stdlib/cell_requires_feature.swift
Alejandro Alonso 9c85180aef Fix some tests
Fix the rest of the tests

Fix them yet again

once again fix
2026-10-08 14:57:31 -07:00

17 lines
872 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-build-swift -parse-stdlib -enable-experimental-feature RawLayout -emit-module-path %t -module-name Swift %S/Inputs/CellFakeStdlib.swift
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -nostdimport -I %t -verify-additional-prefix missing-
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -nostdimport -I %t -enable-experimental-feature Cells
//
// REQUIRES: swift_feature_Cells
// REQUIRES: swift_feature_RawLayout
@available(SwiftStdlib 6.4, *)
func f(_: borrowing Cell<Int>) { }
// expected-missing-error@-1{{using 'Cell' requires an experimental feature; use '-enable-experimental-feature Cells'}}
@available(SwiftStdlib 6.4, *)
func g(_: borrowing ConstCell<Int>) { }
// expected-missing-error@-1{{using 'ConstCell' requires an experimental feature; use '-enable-experimental-feature Cells'}}