view gcc/testsuite/objc.dg/param-1.m @ 124:c3a50d7877e8

fix ipa-inline.c
author mir3636
date Sat, 31 Mar 2018 17:18:55 +0900
parents 04ced10e8804
children 1830386684a0
line wrap: on
line source

/* Test if compiler detects object as an parameter to a method
   or not. It is not valid.  */
/* { dg-do compile } */

@interface foo
@end

@implementation foo
@end

@interface bar
-(void) my_method:(foo) my_param; /* { dg-error "can not use an object as parameter to a method" } */
@end

@implementation bar
-(void) my_method:(foo) my_param /* { dg-error "can not use an object as parameter to a method" } */
{
}
@end