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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [param-1.m] - Blame information for rev 455

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test if compiler detects object as an parameter to a method
2
   or not. It is not valid.  */
3
/* { dg-do compile } */
4
 
5
@interface foo
6
@end
7
 
8
@implementation foo
9
@end
10
 
11
@interface bar
12
-(void) my_method:(foo) my_param; /* { dg-error "can not use an object as parameter to a method" } */
13
@end
14
 
15
@implementation bar
16
-(void) my_method:(foo) my_param /* { dg-error "can not use an object as parameter to a method" } */
17
{
18
}
19
@end
20
 

powered by: WebSVN 2.1.0

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