// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
typedef struct CGColor * CGColorRef;
typedef struct CGColor * Illegal; // expected-error {{'NSObject' attribute takes no arguments}}
static int count;
static CGColorRef tmp = 0;
typedef struct S1 CGColorRef1; // expected-error {{'NSObject' attribute is for pointer types only}}
typedef void * CGColorRef2; // no-warning
typedef void * CFTypeRef;
void
id
int
// rdar://10453342
void
// rdar://11569860
@interface A
@ int i; // expected-error {{'NSObject' attribute is for pointer types only}} \
// expected-error {{property with 'retain (or strong)' attribute must be of object type}}
@end