summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/attributes/class-attribute-3.m
blob: 6cc5d4e268100840eb33f24c9351f0dd208d643f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.  */
/* { dg-do compile } */

/* Test that you get a warning when an unknown class attribute is ignored.  */

#include <objc/objc.h>

__attribute__ ((unknown_attribute))
@interface MyClass
{ /* { dg-warning "ignored" } */
  Class isa;
}
+ (id) new;
@end