blob: 399421fd728fd92c1ed094fb7f3dfd4923248b0e [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -verify -fsyntax-only %s
Daniel Dunbar246e70f2008-09-26 04:48:09 +00002
3__attribute__((deprecated)) @class B; // expected-error {{prefix attribute must be followed by an interface or protocol}}
4
5__attribute__((deprecated)) @interface A @end
6__attribute__((deprecated)) @protocol P0;
7__attribute__((deprecated)) @protocol P1
8@end