| Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -verify -fsyntax-only %s |
| Daniel Dunbar | 26e2ab4 | 2008-09-26 04:48:09 +0000 | [diff] [blame] | 2 | |
| 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 | ||||