Sean Callanan | 8870a32 | 2012-02-04 02:28:18 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fdebugger-support -fdebugger-cast-result-to-id -funknown-anytype -fsyntax-only -verify %s |
2 | |||||
3 | // rdar://problem/9416370 | ||||
4 | namespace test0 { | ||||
5 | void test(id x) { | ||||
6 | if ([x foo]) {} // expected-error {{no known method '-foo'; cast the message send to the method's return type}} | ||||
7 | [x foo]; | ||||
8 | } | ||||
9 | } |