OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [method-8.m] - Blame information for rev 309

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.