repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjCXX
/
ivar-lookup.mm
blob
d99e61780281144b9435d286a01222e63e8a4352
1
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2
// expected-no-diagnostics
3
@interface Ivar
4
- (float*)method;
5
@end
6
7
@interface A {
8
A *Ivar;
9
}
10
- (int*)method;
11
@end
12
13
@implementation A
14
- (int*)method {
15
int *ip = [Ivar method]; // Okay; calls A's method on the instance variable Ivar.
16
// Note that Objective-C calls Ivar's method.
17
return 0;
18
}
19
@end