[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Parser / objc-attr.m
blob7e65eff745da67fee7c54c9ddc5f921e4fd5c70d
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
3 \r
4 @interface NSObject\r
5 @end\r
6 \r
7 [[clang::objc_exception]]\r
8 @interface Foo {\r
9   [[clang::iboutlet]] NSObject *h;\r
10 }\r
11 @property (readonly) [[clang::objc_returns_inner_pointer]] void *i, *j;\r
12 @property (readonly) [[clang::iboutlet]] NSObject *k;\r
13 @end\r
15 [[clang::objc_runtime_name("name")]] @protocol Bar;\r
17 [[clang::objc_protocol_requires_explicit_implementation]] \r
18 @protocol Baz\r
19 @end\r
21 @interface Quux\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
28 @end\r