1 // RUN: %clang_cc1 -fsyntax-only -fdouble-square-bracket-attributes -triple x86_64-apple-macosx10.10.0 -verify %s
\r
2 // expected-no-diagnostics
\r
7 [[clang::objc_exception]]
\r
9 [[clang::iboutlet]] NSObject *h;
\r
11 @property (readonly) [[clang::objc_returns_inner_pointer]] void *i, *j;
\r
12 @property (readonly) [[clang::iboutlet]] NSObject *k;
\r
15 [[clang::objc_runtime_name("name")]] @protocol Bar;
\r
17 [[clang::objc_protocol_requires_explicit_implementation]]
\r
22 -(void)g1 [[clang::ns_consumes_self]];
\r
23 -(void)g2 __attribute__((ns_consumes_self));
\r
24 -(void)h1: (int)x [[clang::ns_consumes_self]];
\r
25 -(void)h2: (int)x __attribute__((ns_consumes_self));
\r
26 -(void) [[clang::ns_consumes_self]] i1;
\r
27 -(void) __attribute__((ns_consumes_self)) i2;
\r