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/] [method-14.m] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test if context-sensitive "in", "out", "byref", etc., qualifiers can be
2
   used as method selectors.  */
3
/* Author: Ziemowit Laski <zlaski@apple.com>.  */
4
/* { dg-do compile } */
5
 
6
@interface Foo
7
- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell;
8
+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5;
9
@end
10
 
11
@implementation Foo
12
- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell { }
13
+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5 { }
14
@end
15
 
16
/* { dg-final { scan-assembler "insertNewButtonImage:in:" } } */
17
/* { dg-final { scan-assembler "oneway:byref:out:bycopy:" } } */

powered by: WebSVN 2.1.0

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