1 /* Test that we get warnings for unrecognized attributes. */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
11 /* TODO: Emit warnings in the @interface as well. Currently we only emit
12 them in @implementation. */
13 + (id) method1: (id) __attribute__ ((xxxxx)) argument1;
14 + (id) method2: (id) __attribute__ ((noinline)) argument1;
17 @implementation MyRootClass
18 + (id) method1: (id) __attribute__ ((xxxxx)) argument1
19 { /* { dg-warning ".xxxxx. attribute directive ignored" } */
22 + (id) method2: (id) __attribute__ ((noinline)) argument1
23 { /* { dg-warning ".noinline. attribute ignored" } */