brintos

brintos / llvm-project-archived public Read only

0
0
Text · 427 B · 642b651 Raw
23 lines · plain
1// 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 3// expected-no-diagnostics4 5@interface Singleton {6}7+ (Singleton*) instance;8@end9 10@implementation Singleton11 12- (void) someSelector { }13 14+ (Singleton*) instance { return 0; }15 16+ (void) compileError17{18     [Singleton.instance  someSelector]; // clang issues error here19}20 21@end22 23