blob: 733ad4288a83b08cfd605b2a79fff134f66e0107 [file] [log] [blame]
Fariborz Jahanian8348de32011-02-08 00:23:07 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian1e52dfc2011-02-08 18:05:59 +00002// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s
Fariborz Jahanian8348de32011-02-08 00:23:07 +00003// rdar://8962253
4
5@interface Singleton {
6}
7+ (Singleton*) instance;
8@end
9
10@implementation Singleton
11
12- (void) someSelector { }
13
14+ (Singleton*) instance { return 0; }
15
16+ (void) compileError
17{
18 [Singleton.instance someSelector]; // clang issues error here
19}
20
21@end
22