[cfe-commits] r50758 - /cfe/trunk/test/Sema/objc-property-3.m

Fariborz Jahanian fjahanian at apple.com
Tue May 6 11:14:26 PDT 2008


Author: fjahanian
Date: Tue May  6 13:14:26 2008
New Revision: 50758

URL: http://llvm.org/viewvc/llvm-project?rev=50758&view=rev
Log:
Test was accidently nullified in previous check-in.

Modified:
    cfe/trunk/test/Sema/objc-property-3.m

Modified: cfe/trunk/test/Sema/objc-property-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/objc-property-3.m?rev=50758&r1=50757&r2=50758&view=diff

==============================================================================
--- cfe/trunk/test/Sema/objc-property-3.m (original)
+++ cfe/trunk/test/Sema/objc-property-3.m Tue May  6 13:14:26 2008
@@ -0,0 +1,14 @@
+// RUN: clang -verify %s
+
+ at interface I 
+{
+	id d1;
+}
+ at property (readwrite, copy) id d1;
+ at property (readwrite, copy) id d2;
+ at end
+
+ at interface NOW : I
+ at property (readonly, retain) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{property 'd1' 'copy' attribute does not match the property inherited from'I'}}
+ at property (readwrite, copy) I* d2; // expected-warning {{property type 'I *' does not match property type inherited from 'I'}}
+ at end





More information about the cfe-commits mailing list