| 1 |
/* Test if context-sensitive "in", "out", "byref", etc., qualifiers can be |
| 2 |
used as method selectors. */ |
| 3 |
/* Author: Ziemowit Laski <[email protected]>. */ |
| 4 |
/* { dg-do compile } */ |
| 5 |
/* { dg-additional-options "-Wno-objc-root-class" } */ |
| 6 |
|
| 7 |
@interface Foo |
| 8 |
- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell; |
| 9 |
+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5; |
| 10 |
@end |
| 11 |
|
| 12 |
@implementation Foo |
| 13 |
- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell { } |
| 14 |
+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5 { } |
| 15 |
@end |
| 16 |
|
| 17 |
/* { dg-final { scan-assembler "insertNewButtonImage:in:" } } */ |
| 18 |
/* { dg-final { scan-assembler "oneway:byref:out:bycopy:" } } */ |