clang/test/SemaObjCXX/unknown-anytype.mm

9 строки
261 B
Plaintext

// RUN: %clang_cc1 -fdebugger-support -funknown-anytype -fsyntax-only -verify %s
// rdar://problem/9416370
namespace test0 {
void test(id x) {
[x foo]; // expected-error {{no known method '-foo'; cast the message send to the method's return type}}
}
}