Files
swift-mirror/test/SourceKit/Sema/objc_attr_without_import.swift
Argyrios Kyrtzidis 8ff6a98a99 [sourcekit] Merge SourceKit into the Swift repo.
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.
2015-11-05 01:09:08 -08:00

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"
}