diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-26 06:43:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-26 06:43:45 +0000 |
commit | 08d96d518210788a2a8f8beaf5b0f139a19c1057 (patch) | |
tree | 055d33b054856ea5317cd80c00bb678bf98fcae3 /clang/test/SemaObjC/conditional-expr-3.m | |
parent | 002a2cb207c00e34f5fe48540eeda2dcc0d4d05f (diff) | |
download | bcm5719-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/SemaObjC/conditional-expr-3.m')
-rw-r--r-- | clang/test/SemaObjC/conditional-expr-3.m | 4 |
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 |