Files
swift-mirror/test/ModuleInterface/conformance_suppression.swift
Allan Shortlidge 9e5a9b963f AST: Remove NoncopyableGenerics feature suppression.
It is no longer necessary to produce `.swiftinterface` files the support older
compilers that lack support for the NoncopyableGenerics feature. Cleaning this
up makes the stdlib `.swiftinterface` far more readable.
2024-07-08 17:44:24 -07:00

14 lines
686 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name Mojuel
// RUN: %FileCheck %s < %t.swiftinterface
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface -module-name Mojuel)
// CHECK: #if compiler(>=5.3) && $ConformanceSuppression
// CHECK-NEXT: public enum RecollectionOrganization<T> : ~Swift.BitwiseCopyable, Swift.Copyable where T : ~Copyable {
// CHECK-NEXT: }
// CHECK-NEXT: #else
// CHECK-NEXT: public enum RecollectionOrganization<T> : Swift.Copyable where T : ~Copyable {
// CHECK-NEXT: }
// CHECK-NEXT: #endif
public enum RecollectionOrganization<T : ~Copyable> : ~BitwiseCopyable, Copyable {}