r197704 - ObjectiveC. Sema test for property, methods

Fariborz Jahanian fjahanian at apple.com
Thu Dec 19 09:22:23 PST 2013


Author: fjahanian
Date: Thu Dec 19 11:22:23 2013
New Revision: 197704

URL: http://llvm.org/viewvc/llvm-project?rev=197704&view=rev
Log:
ObjectiveC. Sema test for property, methods 
'section' attribute. // rdar://15450637

Modified:
    cfe/trunk/test/SemaObjC/method-attributes.m

Modified: cfe/trunk/test/SemaObjC/method-attributes.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/method-attributes.m?rev=197704&r1=197703&r2=197704&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/method-attributes.m (original)
+++ cfe/trunk/test/SemaObjC/method-attributes.m Thu Dec 19 11:22:23 2013
@@ -89,3 +89,12 @@
 __attribute__((cdecl))  // expected-warning {{'cdecl' attribute only applies to functions and methods}}
 @interface Complain 
 @end
+
+// rdar://15450637
+ at interface rdar15450637 : NSObject
+ at property int p __attribute__((section("__TEXT,foo")));
+
+- (id) IMethod :(int) count, ...  __attribute__((section("__TEXT,foo")));
+
++ (void) CMethod : (id) Obj __attribute__((section("__TEXT,fee")));
+ at end





More information about the cfe-commits mailing list