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-16.m] - Blame information for rev 318

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Do not warn about "slightly" mismatched method signatures if
2
   -Wstrict-selector-match is off.  */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-Wno-strict-selector-match" } */
6
 
7
#include <objc/objc.h>
8
 
9
@interface Base
10
- (id) meth1: (Base *)arg1;
11
- (id) window;
12
@end
13
 
14
@interface Derived: Base
15
- (id) meth1: (Derived *)arg1;
16
- (Base *)window;
17
@end
18
 
19
void foo(void) {
20
  id r;
21
 
22
  [r meth1:r];
23
  [r window];
24
}

powered by: WebSVN 2.1.0

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