blob: 440b72d9a2662beafefb4288d4bbe27ec6f27737 [file] [log] [blame]
Daniel Dunbarcd23bb22008-08-26 00:41:39 +00001// RUN: clang -fsyntax-only -verify %s
2
3@interface A
4@end
5@interface B
6@end
7
8void f0(int cond, A *a, B *b) {
9 // Ensure that we can still send a message to result of incompatible
10 // conditional expression.
11 [ (cond ? a : b) test ]; // expected-warning {{pointer type mismatch}}, expected-warning {{method '-test' not found}}
12}