ModuleInterface: Adopt swiftinterface verification lit substitutions in available-attr-no-collapse.swift. Also, put the input file contents directly in the test file instead of RUN: echo lines to make the test a bit easier to understand.

This commit is contained in:
Allan Shortlidge
2022-04-14 15:37:32 -07:00
parent ab9bff389b
commit aeafcf8b0f

View File

@@ -1,8 +1,8 @@
// RUN: %empty-directory(%t)
// RUN: echo '@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, *)' > %t/Foo.swift
// RUN: echo 'public struct Foo {}' >> %t/Foo.swift
// RUN: %target-swift-frontend -emit-module -emit-module-interface-path %t/Foo.swiftinterface -enable-library-evolution %t/Foo.swift
// RUN: %target-swift-emit-module-interface(%t/Foo.swiftinterface) %s
// RUN: %target-swift-typecheck-module-from-interface(%t/Foo.swiftinterface)
// RUN: %FileCheck %s < %t/Foo.swiftinterface
// CHECK: macCatalyst
@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, *)
public struct Foo {}