repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
2013-10-29 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
method-14.mm
blob
4a13b7d6cbb57575022ddf16852d29750785f00f
1
/* Check if casting the receiver type causes method lookup to succeed. This was broken
2
in Objective-C++. */
3
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
4
/* { dg-do compile } */
5
6
@interface A
7
@end
8
9
@interface B: A
10
- (void)f;
11
@end
12
13
void g(A *p) { [(B *)p f]; }
14