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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [method-18.m] - Blame information for rev 774

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

Line No. Rev Author Line
1 704 jeremybenn
/* Do not warn about "slightly" mismatched method signatures if
2
   -Wstrict-selector-match is off.  */
3
/* { dg-do compile } */
4
/* { dg-options "-Wno-strict-selector-match" } */
5
 
6
#include <objc/objc.h>
7
 
8
typedef enum { en1_1, en1_2 } En1;
9
typedef enum { en2_1, en2_2 } En2;
10
typedef struct { int a, b; } St1;
11
typedef struct { unsigned a, b; } St2;
12
 
13
@interface Base
14
- (id) meth1: (En1)arg1;
15
- (St1) window;
16
@end
17
 
18
@interface Derived: Base
19
- (id) meth1: (En2)arg1;
20
- (St2)window;
21
@end
22
 
23
void foo(void) {
24
  id r;
25
  En1 en;
26
 
27
  [r meth1:en];
28
  [r window];
29
}

powered by: WebSVN 2.1.0

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