Files
swift-mirror/test/decl/protocol/conforms/nscoding_availability_osx.swift
Mishal Shah 92ca9fc924 [Apple Silicon] Generalize tests for other macOS architectures
Most of the changes fall into a few categories:
* Replace explicit "x86_64" with %target-cpu in lit tests
* Cope with architecture differences in IR/asm/etc. macOS-specific tests
2020-07-02 16:27:46 -07:00

23 lines
784 B
Swift

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -target %target-cpu-apple-macosx10.50 -verify
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -target %target-cpu-apple-macosx10.50 -dump-ast > %t.ast
// RUN: %FileCheck %s < %t.ast
// REQUIRES: objc_interop
// REQUIRES: OS=macosx
import Foundation
// Nested classes that aren't available in our deployment target.
@available(OSX 10.51, *)
class CodingI : NSObject, NSCoding {
required init(coder: NSCoder) { }
func encode(coder: NSCoder) { }
}
@available(OSX 10.51, *)
class OuterCodingJ {
// CHECK-NOT: class_decl{{.*}}"NestedJ"{{.*}}@_staticInitializeObjCMetadata
class NestedJ : CodingI { }
}