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
Keep the source location of the selector in ObjCMessageExpr.
[clang.git]
/
test
/
SemaObjC
/
super-property-notation.m
blob
7d3f7c70bb521020a7915638d71d0e262df9d115
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
@interface B
4
+(int) classGetter;
5
-(int) getter;
6
@end
7
8
@interface A : B
9
@end
10
11
@implementation A
12
+(int) classGetter {
13
return 0;
14
}
15
16
+(int) classGetter2 {
17
return super.classGetter;
18
}
19
20
-(void) method {
21
int x = super.getter;
22
}
23
@end
24
25
void f0() {
26
// FIXME: not implemented yet.
27
//int l1 = A.classGetter;
28
int l2 = [A classGetter2];
29
}
30