]> granicus.if.org Git - clang/commitdiff
Remove old/incorrect warnings.
authorSteve Naroff <snaroff@apple.com>
Tue, 3 Mar 2009 15:49:23 +0000 (15:49 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 3 Mar 2009 15:49:23 +0000 (15:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65950 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/property-3.m
test/SemaObjC/property-5.m
test/SemaObjC/property-category-3.m

index ead61508d5a07207a46aacc9e1e2ad790da2b575..6e92f2530251cfddf77d39014535f446636a9aeb 100644 (file)
@@ -10,5 +10,5 @@
 
 @interface NOW : I
 @property (readonly) 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'}}
-@property (readwrite, copy) I* d2; // expected-warning {{property type 'I *' does not match property type inherited from 'I'}}
+@property (readwrite, copy) I* d2;
 @end
index 70ef315b22d7ccf8d30272b1def34e2451b83941..1a3124087a16afcffa078e125f54fe860f62b688 100644 (file)
 @end
 
 @interface Data : Base <P1, P2>
-@property(readonly) NSData *ref;       // expected-warning {{property type 'NSData *' does not match property type inherited from 'Base'}}
-@property(readonly) Data *p_base;      // expected-warning {{property type 'Data *' does not match property type inherited from 'Base'}}
-@property(readonly) MutableNSData * m_nsdata;  // expected-warning {{property type 'MutableNSData *' does not match property type inherited from 'Base'}}
+@property(readonly) NSData *ref;       
+@property(readonly) Data *p_base;      
+@property(readonly) MutableNSData * m_nsdata;  
 @end
 
 @interface  MutedData: Data
-@property(readonly) id p_base; // expected-warning {{property type 'id' does not match property type inherited from 'Data'}}
+@property(readonly) id p_base; 
 @end
 
 @interface ConstData : Data <P1, P2, P3>
-@property(readonly) ConstData *p_base; // expected-warning {{property type 'ConstData *' does not match property type inherited from 'Data'}}
+@property(readonly) ConstData *p_base;
 @end
 
 void foo(Base *b, id x) {
index 84dc3ad7f7259f662c5df1be82fb4d668d38bb24..fdf78315c62bdddfb2b67b06daf17677df19a77e 100644 (file)
@@ -12,7 +12,7 @@
 @end
 
 @interface I (Cat) <P>
-@property float X; // expected-warning {{property type 'float' does not match property type inherited from 'P'}}
+@property float X; // expected-warning {{property type 'float' is incompatible with type 'int' inherited from 'P'}}
 @end
 
 @interface I (Cat2) <P1>