1/* Test that we get warnings for unrecognized attributes.  */
2/* { dg-do compile } */
3
4#include <objc/objc.h>
5
6@interface MyRootClass
7{
8  Class isa;
9}
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
15
16@implementation MyRootClass
17+ (id) method1: (id) __attribute__ ((xxxxx)) argument1  /* { dg-warning ".xxxxx. attribute directive ignored" } */
18{
19  return argument1;
20}
21+ (id) method2: (id) __attribute__ ((noinline)) argument1 /* { dg-warning ".noinline. attribute ignored" } */
22{
23  return argument1;
24}
25@end
26