// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
@protocol p1,p2,p3; // expected-note {{protocol 'p1' has no definition}} \
// expected-note {{protocol 'p2' has no definition}}
// expected-note {{previous definition is here}}
// expected-note {{previous definition is here}}
// expected-note {{previous definition is here}}
// expected-warning {{duplicate definition of category 'Category4' on interface 'MyClass1'}}
// expected-warning {{duplicate definition of category 'Category7' on interface 'MyClass1'}}
// expected-warning {{duplicate definition of category 'Category8' on interface 'MyClass1'}}
// expected-warning {{cannot find protocol definition for 'p2'}}
// expected-error {{cannot find interface declaration for 'UnknownClass'}}
@class MyClass2; // expected-note{{forward declaration of class here}}
// expected-error {{cannot define category for undefined class 'MyClass2'}}
// <rdar://problem/7249233>
// <rdar://problem/7680391> - Handle nameless categories with no name that refer
// to an undefined class
// expected-error{{cannot find interface declaration}}
// <rdar://problem/8891119> - Handle @synthesize being used in conjunction
// with explicitly declared accessor.
// rdar://10968158
@class I; // expected-note {{forward declaration}}
// <rdar://problem/11478173>