blob: 4a5f1959dc0eeda328152ee97ed5521553573ca5 [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00003// expected-no-diagnostics
Fariborz Jahanian8348de32011-02-08 00:23:07 +00004// rdar://8962253
5
6@interface Singleton {
7}
8+ (Singleton*) instance;
9@end
10
11@implementation Singleton
12
13- (void) someSelector { }
14
15+ (Singleton*) instance { return 0; }
16
17+ (void) compileError
18{
19 [Singleton.instance someSelector]; // clang issues error here
20}
21
22@end
23