c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.

[gcc/ChangeLog]
2004-10-18  Ziemowit Laski  <zlaski@apple.com>

        * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.

[gcc/testsuite/ChangeLog]
2004-10-18  Ziemowit Laski  <zlaski@apple.com>

        * objc.dg/method-14.m: New test.

From-SVN: r89252
This commit is contained in:
Ziemowit Laski 2004-10-18 22:28:09 +00:00 committed by Ziemowit Laski
parent a494ed43ab
commit d4de696663
4 changed files with 26 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-10-18 Ziemowit Laski <zlaski@apple.com>
* c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
Roger Sayle <roger@eyesopen.com>

View file

@ -2889,7 +2889,7 @@ reservedwords:
ENUM | STRUCT | UNION | IF | ELSE | WHILE | DO | FOR
| SWITCH | CASE | DEFAULT | BREAK | CONTINUE | RETURN
| GOTO | ASM_KEYWORD | SIZEOF | TYPEOF | ALIGNOF
| TYPESPEC | TYPE_QUAL
| TYPESPEC | TYPE_QUAL | OBJC_TYPE_QUAL
;
objc_qual:

View file

@ -1,3 +1,7 @@
2004-10-18 Ziemowit Laski <zlaski@apple.com>
* objc.dg/method-14.m: New test.
2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.c-torture/compile/pr17529.c: Fix test for non x86.

View file

@ -0,0 +1,17 @@
/* Test if context-sensitive "in", "out", "byref", etc., qualifiers can be
used as method selectors. */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do compile } */
@interface Foo
- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell;
+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5;
@end
@implementation Foo
- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell { }
+ (oneway void)oneway:(int)i2 byref:(int)i3 out:(float)f4 bycopy:(float)f5 { }
@end
/* { dg-final { scan-assembler "insertNewButtonImage:in:" } } */
/* { dg-final { scan-assembler "oneway:byref:out:bycopy:" } } */