tighten the check for cast of super to avoid rejecting valid code,
rdar://7853261


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101048 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjC/super.m b/test/SemaObjC/super.m
index d751d17..9498a8c 100644
--- a/test/SemaObjC/super.m
+++ b/test/SemaObjC/super.m
@@ -34,7 +34,11 @@
   [super cMethod]; // expected-warning{{method '+cMethod' not found (return type defaults to 'id')}}
   
   id X[] = { [ super superClassMethod] };
-  id Y[] = { [ super.superClassMethod iMethod] };
+  id Y[] = {
+    [ super.superClassMethod iMethod],
+    super.superClassMethod,
+    (id)super.superClassMethod  // not a cast of super: rdar://7853261
+  };
   return 0;
 }
 @end