r184150 - Add a missing testcase for ObjC ivar encoding for a C++ class with a vptr.
Eli Friedman
eli.friedman at gmail.com
Mon Jun 17 16:57:41 PDT 2013
Author: efriedma
Date: Mon Jun 17 18:57:41 2013
New Revision: 184150
URL: http://llvm.org/viewvc/llvm-project?rev=184150&view=rev
Log:
Add a missing testcase for ObjC ivar encoding for a C++ class with a vptr.
Found by skimming over lcov report.
Modified:
cfe/trunk/test/CodeGenObjCXX/encode.mm
Modified: cfe/trunk/test/CodeGenObjCXX/encode.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/encode.mm?rev=184150&r1=184149&r2=184150&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/encode.mm (original)
+++ cfe/trunk/test/CodeGenObjCXX/encode.mm Mon Jun 17 18:57:41 2013
@@ -201,3 +201,16 @@ struct Y : Empty {
// CHECK: @g8 = constant [14 x i8] c"{Y={X=[10i]}}\00"
extern const char g8[] = @encode(Y);
+
+
+class dynamic_class {
+public:
+ virtual ~dynamic_class();
+};
+ at interface has_dynamic_class_ivar
+ at end
+ at implementation has_dynamic_class_ivar {
+ dynamic_class dynamic_class_ivar;
+}
+ at end
+// CHECK: internal global [41 x i8] c"{dynamic_class=\22_vptr$dynamic_class\22^^?}\00"
More information about the cfe-commits
mailing list