summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/conditional-expr-8.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/conditional-expr-8.m')
-rw-r--r--clang/test/SemaObjC/conditional-expr-8.m25
1 files changed, 25 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/conditional-expr-8.m b/clang/test/SemaObjC/conditional-expr-8.m
new file mode 100644
index 0000000..6799983
--- /dev/null
+++ b/clang/test/SemaObjC/conditional-expr-8.m
@@ -0,0 +1,25 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// rdar://9296866
+
+@interface NSResponder
+@end
+
+
+@interface NSView : NSResponder
+@end
+
+@interface WebView : NSView
+@end
+
+@protocol WebDocumentView
+@end
+
+@implementation NSView
+
+- (void) FUNC : (id)s {
+ WebView *m_webView;
+ NSView <WebDocumentView> *documentView;
+ NSView *coordinateView = s ? documentView : m_webView;
+}
+@end
+