Reinstate test case accidentally reverted by r148028

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148118 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjCXX/properties.mm b/test/SemaObjCXX/properties.mm
index 7ea8a48..d8d92e5 100644
--- a/test/SemaObjCXX/properties.mm
+++ b/test/SemaObjCXX/properties.mm
@@ -46,15 +46,25 @@
   template<typename T> void count();
 }
 
-@interface Test4 {
+@interface Test4
+- (X&) prop;
+@end
+
+void test4(Test4 *t) {
+  (void)const_cast<const X&>(t.prop);
+  (void)dynamic_cast<X&>(t.prop);
+  (void)reinterpret_cast<int&>(t.prop);
+}
+
+@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) { }
 }