]> granicus.if.org Git - clang/commitdiff
Add a missing testcase for ObjC ivar encoding for a C++ class with a vptr.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 17 Jun 2013 23:57:41 +0000 (23:57 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 17 Jun 2013 23:57:41 +0000 (23:57 +0000)
Found by skimming over lcov report.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184150 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjCXX/encode.mm

index 1b6a241fcffae4787a71dfb05cdb8e66a845d230..589db6c0e04d4ffd5906e1f6f3a5620baf79f2ae 100644 (file)
@@ -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();
+};
+@interface has_dynamic_class_ivar
+@end
+@implementation has_dynamic_class_ivar {
+  dynamic_class dynamic_class_ivar;
+}
+@end
+// CHECK: internal global [41 x i8] c"{dynamic_class=\22_vptr$dynamic_class\22^^?}\00"