repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Improve the diagnostic for -Wcustom-atomic-properties. Suggestion by Fariborz!
[clang.git]
/
test
/
SemaObjCXX
/
ivar-lookup.mm
blob
bb26f48f13d5b92e20f088b876b51a5dfeac89ad
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
@interface Ivar
3
- (float*)method;
4
@end
5
6
@interface A {
7
A *Ivar;
8
}
9
- (int*)method;
10
@end
11
12
@implementation A
13
- (int*)method {
14
int *ip = [Ivar method]; // Okay; calls A's method on the instance variable Ivar.
15
// Note that Objective-C calls Ivar's method.
16
return 0;
17
}
18
@end