From: Douglas Gregor Date: Sat, 7 Feb 2009 17:16:20 +0000 (+0000) Subject: Add a test case for some Objective-C behavior that will not be supported in Objective-C++ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50f4e7031f808f2a20264cf133c65996c48b1bef;p=clang Add a test case for some Objective-C behavior that will not be supported in Objective-C++ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64019 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjCXX/void_to_obj.mm b/test/SemaObjCXX/void_to_obj.mm new file mode 100644 index 0000000000..bd2ef147bd --- /dev/null +++ b/test/SemaObjCXX/void_to_obj.mm @@ -0,0 +1,11 @@ +// RUN: clang -fsyntax-only -verify %s + +// +@class XX; + +void func() { + XX *obj; + void *vv; + + obj = vv; // expected-error{{incompatible type assigning 'void *', expected 'XX *'}} +}