blob: b28b1355efcd40c98bcaf8a55b2fca94b33f5f4b (
plain)
1
2
3
4
5
6
7
8
9
|
// RUN: %clang_cc1 -fdebugger-support -funknown-anytype -fsyntax-only -verify %s
// rdar://problem/9416370
namespace test0 {
void test(id x) {
if ([x foo]) {} // expected-error {{no known method '-foo'; cast the message send to the method's return type}}
[x foo]; // expected-error {{no known method '-foo'; cast the message send to the method's return type}}
}
}
|