summaryrefslogtreecommitdiffstats
path: root/test/Parser/prefix-attributes.m
blob: bb6d04da2a082193e2bc9d0f190927bd0dda9bc3 (plain)
1
2
3
4
5
6
7
8
// RUN: clang-cc -verify -fsyntax-only %s

__attribute__((deprecated)) @class B; // expected-error {{prefix attribute must be followed by an interface or protocol}}

__attribute__((deprecated)) @interface A @end
__attribute__((deprecated)) @protocol P0;
__attribute__((deprecated)) @protocol P1
@end
OpenPOWER on IntegriCloud