mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
12 lines
317 B
Swift
12 lines
317 B
Swift
// RUN: %sourcekitd-test -req=sema %s -- %s > %t.response
|
|
// RUN: FileCheck -input-file=%t.response %s
|
|
// This tests that we are not crashing in SILGen.
|
|
|
|
// CHECK: @objc attribute used without importing module
|
|
@objc protocol Communicate {
|
|
var name: String { get }
|
|
}
|
|
class Cat : Communicate {
|
|
let name = "Felix"
|
|
}
|