mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
1f008fb0d0
And update tests to use them. This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130. Fixes rdar://169749886.
21 lines
831 B
Swift
21 lines
831 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-emit-module-interface(%t/FeatureTest.swiftinterface) %s -module-name FeatureTest -disable-availability-checking
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/FeatureTest.swiftinterface) -module-name FeatureTest -disable-availability-checking
|
|
// RUN: %FileCheck %s < %t/FeatureTest.swiftinterface
|
|
|
|
// CHECK: @_noEagerMove public struct Permanent {
|
|
// CHECK-NEXT: }
|
|
@_noEagerMove
|
|
public struct Permanent {}
|
|
|
|
// CHECK: @_hasMissingDesignatedInitializers @_eagerMove public class Transient {
|
|
// CHECK-NEXT: deinit
|
|
// CHECK-NEXT: }
|
|
@_eagerMove
|
|
public class Transient {}
|
|
|
|
// CHECK: @_lexicalLifetimes public func lexicalInAModuleWithoutLexicalLifetimes(_ t: FeatureTest::Transient)
|
|
@_lexicalLifetimes
|
|
public func lexicalInAModuleWithoutLexicalLifetimes(_ t: Transient) {}
|