[cfe-commits] r65950 - in /cfe/trunk/test/SemaObjC: property-3.m property-5.m property-category-3.m
Steve Naroff
snaroff at apple.com
Tue Mar 3 07:49:30 PST 2009
Author: snaroff
Date: Tue Mar 3 09:49:23 2009
New Revision: 65950
URL: http://llvm.org/viewvc/llvm-project?rev=65950&view=rev
Log:
Remove old/incorrect warnings.
Modified:
cfe/trunk/test/SemaObjC/property-3.m
cfe/trunk/test/SemaObjC/property-5.m
cfe/trunk/test/SemaObjC/property-category-3.m
Modified: cfe/trunk/test/SemaObjC/property-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/property-3.m?rev=65950&r1=65949&r2=65950&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/property-3.m (original)
+++ cfe/trunk/test/SemaObjC/property-3.m Tue Mar 3 09:49:23 2009
@@ -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'}}
- at property (readwrite, copy) I* d2; // expected-warning {{property type 'I *' does not match property type inherited from 'I'}}
+ at property (readwrite, copy) I* d2;
@end
Modified: cfe/trunk/test/SemaObjC/property-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/property-5.m?rev=65950&r1=65949&r2=65950&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/property-5.m (original)
+++ cfe/trunk/test/SemaObjC/property-5.m Tue Mar 3 09:49:23 2009
@@ -16,17 +16,17 @@
@end
@interface Data : Base <P1, P2>
- at property(readonly) NSData *ref; // expected-warning {{property type 'NSData *' does not match property type inherited from 'Base'}}
- at property(readonly) Data *p_base; // expected-warning {{property type 'Data *' does not match property type inherited from 'Base'}}
- at property(readonly) MutableNSData * m_nsdata; // expected-warning {{property type 'MutableNSData *' does not match property type inherited from 'Base'}}
+ at property(readonly) NSData *ref;
+ at property(readonly) Data *p_base;
+ at property(readonly) MutableNSData * m_nsdata;
@end
@interface MutedData: Data
- at property(readonly) id p_base; // expected-warning {{property type 'id' does not match property type inherited from 'Data'}}
+ at property(readonly) id p_base;
@end
@interface ConstData : Data <P1, P2, P3>
- at property(readonly) ConstData *p_base; // expected-warning {{property type 'ConstData *' does not match property type inherited from 'Data'}}
+ at property(readonly) ConstData *p_base;
@end
void foo(Base *b, id x) {
Modified: cfe/trunk/test/SemaObjC/property-category-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/property-category-3.m?rev=65950&r1=65949&r2=65950&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/property-category-3.m (original)
+++ cfe/trunk/test/SemaObjC/property-category-3.m Tue Mar 3 09:49:23 2009
@@ -12,7 +12,7 @@
@end
@interface I (Cat) <P>
- at property float X; // expected-warning {{property type 'float' does not match property type inherited from 'P'}}
+ at property float X; // expected-warning {{property type 'float' is incompatible with type 'int' inherited from 'P'}}
@end
@interface I (Cat2) <P1>
More information about the cfe-commits
mailing list