1 // RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s
4 @required // expected-error {{directive may only be specified in protocols only}}
8 @optional // expected-error {{directive may only be specified in protocols only}}
32 @protocol PROTO<p1> // expected-note {{previous definition is here}}
35 @protocol PROTO<p1> // expected-warning {{duplicate protocol definition of 'PROTO'}}
38 @protocol PROTO3<p1, p1>
44 @protocol PROTO4 <p1, p2, PROTO, PROTO3, p3>
48 @protocol YY <XX> // Use of declaration of XX here should not cause a warning.
53 // Detect circular dependencies.
55 @protocol C < B > // expected-note{{previous definition is here}}
59 @protocol B < A > // expected-error{{protocol has circular dependency}}
63 - (int)test:(int)param, ..; // expected-error{{type specifier missing}} \
64 // expected-error{{expected ';' after method prototype}}