Mercurial > hg > CbC > CbC_llvm
view clang/test/Parser/objc-attr.m @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 1f2b6ac9f198 |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only -fdouble-square-bracket-attributes -triple x86_64-apple-macosx10.10.0 -verify %s // expected-no-diagnostics @interface NSObject @end [[clang::objc_exception]] @interface Foo { [[clang::iboutlet]] NSObject *h; } @property (readonly) [[clang::objc_returns_inner_pointer]] void *i, *j; @property (readonly) [[clang::iboutlet]] NSObject *k; @end [[clang::objc_runtime_name("name")]] @protocol Bar; [[clang::objc_protocol_requires_explicit_implementation]] @protocol Baz @end @interface Quux -(void)g1 [[clang::ns_consumes_self]]; -(void)g2 __attribute__((ns_consumes_self)); -(void)h1: (int)x [[clang::ns_consumes_self]]; -(void)h2: (int)x __attribute__((ns_consumes_self)); -(void) [[clang::ns_consumes_self]] i1; -(void) __attribute__((ns_consumes_self)) i2; @end