Daniel Dunbar | a56f746 | 2008-08-26 00:41:39 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
2 | |||||
3 | @interface A | ||||
4 | @end | ||||
5 | @interface B | ||||
6 | @end | ||||
7 | |||||
8 | void f0(int cond, A *a, B *b) { | ||||
9 | // Ensure that we can still send a message to result of incompatible | ||||
10 | // conditional expression. | ||||
Daniel Dunbar | 40727a4 | 2008-09-03 17:53:25 +0000 | [diff] [blame] | 11 | [ (cond ? a : b) test ]; // expected-warning {{method '-test' not found}} |
Daniel Dunbar | a56f746 | 2008-08-26 00:41:39 +0000 | [diff] [blame] | 12 | } |