1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @protocol P // expected-note {{previous}}
7 @interface I // expected-note {{previous}}
12 @interface I2(C) // expected-note {{previous}}
16 @protocol P // expected-warning {{duplicate protocol definition of 'P' is ignored}}
20 @interface I // expected-error {{duplicate}}
23 @interface I2(C) // expected-warning {{duplicate}}
29 [p meth2]; // expected-warning {{not found}}