Debian Codegraph @

clang/test/SemaObjC/property-dot-receiver.m

raw
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-diagnostics
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