[cfe-commits] r148118 - /cfe/trunk/test/SemaObjCXX/properties.mm

Douglas Gregor dgregor at apple.com
Fri Jan 13 08:56:27 PST 2012


Author: dgregor
Date: Fri Jan 13 10:56:26 2012
New Revision: 148118

URL: http://llvm.org/viewvc/llvm-project?rev=148118&view=rev
Log:
Reinstate test case accidentally reverted by r148028

Modified:
    cfe/trunk/test/SemaObjCXX/properties.mm

Modified: cfe/trunk/test/SemaObjCXX/properties.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/properties.mm?rev=148118&r1=148117&r2=148118&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/properties.mm (original)
+++ cfe/trunk/test/SemaObjCXX/properties.mm Fri Jan 13 10:56:26 2012
@@ -46,15 +46,25 @@
   template<typename T> void count();
 }
 
- at interface Test4 {
+ at interface Test4
+- (X&) prop;
+ at end
+
+void test4(Test4 *t) {
+  (void)const_cast<const X&>(t.prop);
+  (void)dynamic_cast<X&>(t.prop);
+  (void)reinterpret_cast<int&>(t.prop);
+}
+
+ at interface Test5 {
 @public
   int count;
 }
 @property int count;
 @end
 
-void test4(Test4* t4) {
-  if (t4.count < 2) { }
-  if (t4->count < 2) { }
+void test5(Test5* t5) {
+  if (t5.count < 2) { }
+  if (t5->count < 2) { }
 }
 





More information about the cfe-commits mailing list