From: Fariborz Jahanian Date: Thu, 19 Dec 2013 17:22:23 +0000 (+0000) Subject: ObjectiveC. Sema test for property, methods X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42a9de9bf88dffb98577d3a997ae081b1b346138;p=clang ObjectiveC. Sema test for property, methods 'section' attribute. // rdar://15450637 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197704 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjC/method-attributes.m b/test/SemaObjC/method-attributes.m index 41c685d006..c740ebb6fd 100644 --- a/test/SemaObjC/method-attributes.m +++ b/test/SemaObjC/method-attributes.m @@ -89,3 +89,12 @@ __attribute__((cdecl)) // expected-warning {{'cdecl' attribute only applies to functions and methods}} @interface Complain @end + +// rdar://15450637 +@interface rdar15450637 : NSObject +@property int p __attribute__((section("__TEXT,foo"))); + +- (id) IMethod :(int) count, ... __attribute__((section("__TEXT,foo"))); + ++ (void) CMethod : (id) Obj __attribute__((section("__TEXT,fee"))); +@end