mirror of
https://github.com/apple/swift.git
synced 2026-11-01 23:11:50 +01:00
17 lines
872 B
Swift
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'}}
|