llvm-project/clang/test/SemaObjCXX/void_to_obj.mm

12 lines
212 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -verify %s
// <rdar://problem/6463729>
@class XX;
void func() {
XX *obj;
void *vv;
obj = vv; // expected-error{{incompatible type assigning 'void *', expected 'XX *'}}
}