summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-26 06:43:45 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-26 06:43:45 +0000
commit08d96d518210788a2a8f8beaf5b0f139a19c1057 (patch)
tree055d33b054856ea5317cd80c00bb678bf98fcae3 /clang/test
parent002a2cb207c00e34f5fe48540eeda2dcc0d4d05f (diff)
downloadbcm5719-llvm-08d96d518210788a2a8f8beaf5b0f139a19c1057.tar.gz
bcm5719-llvm-08d96d518210788a2a8f8beaf5b0f139a19c1057.zip
Fix a minor typo in the handling of the conditional operator for Objective-C interface pointers
llvm-svn: 60096
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaObjC/conditional-expr-3.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/conditional-expr-3.m b/clang/test/SemaObjC/conditional-expr-3.m
index f5b04339e83..eb313df029b 100644
--- a/clang/test/SemaObjC/conditional-expr-3.m
+++ b/clang/test/SemaObjC/conditional-expr-3.m
@@ -61,3 +61,7 @@ void f9(int cond, id<P0,P1> x0, id<P0,P2> x1) {
void f10(int cond, id<P0,P1> x0, id<P0,P2> x1) {
barP2(cond ? x0 : x1);
}
+
+int f11(int cond, A* a, B* b) {
+ return (cond? b : a)->x; // expected-error{{'A' does not have a member named 'x'}}
+} \ No newline at end of file
OpenPOWER on IntegriCloud