mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The SILGen testsuite consists of valid Swift code covering most language features. We use these tests to verify that no unknown nodes are in the file's libSyntax tree. That way we will (hopefully) catch any future changes or additions to the language which are not implemented in libSyntax.
13 lines
298 B
Swift
13 lines
298 B
Swift
// RUN: %target-swift-emit-silgen -sdk %S/Inputs %s -I %S/Inputs -enable-source-import
|
|
//
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
// rdar://15933538 let decls with StoredObjC storage type should have a getter
|
|
// synthesized, but not a setter.
|
|
@objc
|
|
class C : NSObject {
|
|
let x : Int = 100
|
|
}
|