Skip to content

Commit 1395af1

Browse files
committed
test: more module interface tests
1 parent 9220f77 commit 1395af1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/ModuleInterface/spi-available.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
// RUN: %target-swift-frontend -compile-module-from-interface %t/Foo.swiftinterface -o %t/Foo.public.swiftmodule -module-name Foo
55
// RUN: %target-swift-frontend -compile-module-from-interface %t/Foo.private.swiftinterface -o %t/Foo.private.swiftmodule -module-name Foo
66

7-
@_spi_available(macOS 10.10, *)
7+
@_spi_available(macOS 10.10, tvOS 14.0, *)
88
@available(iOS 8.0, *)
99
public class SPIClass {}
1010

1111
// RUN: %FileCheck %s -check-prefix CHECK-PUBLIC < %t/Foo.swiftinterface
1212
// RUN: %FileCheck %s -check-prefix CHECK-PRIVATE < %t/Foo.private.swiftinterface
1313

1414
// CHECK-PUBLIC: @available(macOS, unavailable)
15+
// CHECK-PUBLIC: @available(tvOS, unavailable)
16+
1517
// CHECK-PRIVATE: @_spi_available(macOS, introduced: 10.10)
18+
// CHECK-PRIVATE: @_spi_available(tvOS, introduced: 14.0)

0 commit comments

Comments
 (0)