[cfe-commits] r64019 - /cfe/trunk/test/SemaObjCXX/void_to_obj.mm
Douglas Gregor
dgregor at apple.com
Sat Feb 7 09:16:20 PST 2009
Author: dgregor
Date: Sat Feb 7 11:16:20 2009
New Revision: 64019
URL: http://llvm.org/viewvc/llvm-project?rev=64019&view=rev
Log:
Add a test case for some Objective-C behavior that will not be supported in Objective-C++
Added:
cfe/trunk/test/SemaObjCXX/void_to_obj.mm
Added: cfe/trunk/test/SemaObjCXX/void_to_obj.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/void_to_obj.mm?rev=64019&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjCXX/void_to_obj.mm (added)
+++ cfe/trunk/test/SemaObjCXX/void_to_obj.mm Sat Feb 7 11:16:20 2009
@@ -0,0 +1,11 @@
+// RUN: clang -fsyntax-only -verify %s
+
+// <rdar://problem/6463729>
+ at class XX;
+
+void func() {
+ XX *obj;
+ void *vv;
+
+ obj = vv; // expected-error{{incompatible type assigning 'void *', expected 'XX *'}}
+}
More information about the cfe-commits
mailing list