summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/void_to_obj.mm
blob: 932827e61425bda3789781ebc3e277b31db055bb (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 *'}}
}
OpenPOWER on IntegriCloud