blob: 7442251377afd701bfb77a82e49dbfc7567fd6ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
#include <objc/objc.h>
@interface MyRootClass
{
Class isa;
}
@property id name __attribute__((deprecated));
@property id table __attribute__((xxx)); /* { dg-warning ".xxx. attribute directive ignored" } */
@property void function (void); /* { dg-error "can.t make .function. into a method" } */
@property typedef int j; /* { dg-error "invalid type for property" } */
@end
|