Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaObjC/attr-swift_objc_members.m @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
line wrap: on
line source
// RUN: %clang_cc1 -verify -fsyntax-only %s #if !__has_attribute(swift_objc_members) #error cannot verify presence of swift_objc_members attribute #endif __attribute__((__swift_objc_members__)) __attribute__((__objc_root_class__)) @interface I @end __attribute__((swift_objc_members)) @protocol P @end // expected-error@-3 {{'swift_objc_members' attribute only applies to Objective-C interfaces}} __attribute__((swift_objc_members)) extern void f(void); // expected-error@-2 {{'swift_objc_members' attribute only applies to Objective-C interfaces}} // expected-error@+1 {{'__swift_objc_members__' attribute takes no arguments}} __attribute__((__swift_objc_members__("J"))) @interface J @end