mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This affects module interfaces, interface generation in sourcekitd, and diagnostics. Also fixes a fixit that was assuming the 'OSX' spelling when computing the source range to replace. Resolves rdar://problem/64667960
22 lines
637 B
Swift
22 lines
637 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module-path %t/mymod.swiftmodule -module-name mymod %s
|
|
// RUN: %target-swift-ide-test -print-module -print-interface -no-empty-line-between-members -module-to-print=mymod -I %t -source-filename=%s > %t.syn.txt
|
|
// RUN: %FileCheck %s -check-prefix=CHECK1 < %t.syn.txt
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
@available(macOS 10.11, iOS 8.0, *)
|
|
public class C1 {
|
|
}
|
|
|
|
@available(macOS 10.12, *)
|
|
public extension C1 {
|
|
func ext_foo() {}
|
|
}
|
|
|
|
// CHECK1: @available(macOS 10.11, iOS 8.0, *)
|
|
// CHECK1-NEXT: public class C1 {
|
|
|
|
// CHECK1: @available(macOS 10.12, *)
|
|
// CHECK1-NEXT: extension C1 {
|