]> granicus.if.org Git - clang/commitdiff
ObjectiveC. Sema test for property, methods
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 19 Dec 2013 17:22:23 +0000 (17:22 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 19 Dec 2013 17:22:23 +0000 (17:22 +0000)
'section' attribute. // rdar://15450637

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197704 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/method-attributes.m

index 41c685d00648f2de18c8f464ebc0b26e53976525..c740ebb6fd6e35632cf733b97408226d61fd3869 100644 (file)
 __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