reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git] / gcc / testsuite / objc.dg / method-14.m
blob96982254aa9f397d422b1833aabda0cfc2b6dcab
1 /* 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 } */
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
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
16 /* { dg-final { scan-assembler "insertNewButtonImage:in:" } } */
17 /* { dg-final { scan-assembler "oneway:byref:out:bycopy:" } } */