summaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/void_to_obj.mm
blob: 851ecf5db666527baf9cd165d42267ec4eebf318 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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 *'}}
}