Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / objc.dg / attributes / parameter-attribute-2.m
blob99c5a308b8cbcf8b6086b2bcb6eca53c47a4f82b
1 /* Test that we get warnings for unrecognized attributes.  */
2 /* { dg-do compile } */
4 #include <objc/objc.h>
6 @interface MyRootClass
8   Class isa;
10 /* TODO: Emit warnings in the @interface as well.  Currently we only emit
11    them in @implementation.  */
12 + (id) method1: (id) __attribute__ ((xxxxx)) argument1;
13 + (id) method2: (id) __attribute__ ((noinline)) argument1;
14 @end
16 @implementation MyRootClass
17 + (id) method1: (id) __attribute__ ((xxxxx)) argument1
18 {  /* { dg-warning ".xxxxx. attribute directive ignored" } */
19   return argument1;
21 + (id) method2: (id) __attribute__ ((noinline)) argument1
22 { /* { dg-warning ".noinline. attribute ignored" } */
23   return argument1;
25 @end