]> granicus.if.org Git - clang/commitdiff
Moved objective-c++ code gen. tests to their own directory and
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 15 Jun 2010 23:49:10 +0000 (23:49 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 15 Jun 2010 23:49:10 +0000 (23:49 +0000)
added a new test case (related to radar 8070772).

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

test/CodeGenObjCXX/copyable-property-object.mm [new file with mode: 0644]
test/CodeGenObjCXX/implicit-copy-assign-operator.mm [moved from test/CodeGenCXX/implicit-copy-assign-operator.mm with 100% similarity]
test/CodeGenObjCXX/implicit-copy-constructor.mm [moved from test/CodeGenCXX/implicit-copy-constructor.mm with 100% similarity]

diff --git a/test/CodeGenObjCXX/copyable-property-object.mm b/test/CodeGenObjCXX/copyable-property-object.mm
new file mode 100644 (file)
index 0000000..8962c53
--- /dev/null
@@ -0,0 +1,28 @@
+// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
+
+struct POD {
+  int array[3][4];
+  id objc_obj;
+};
+
+struct D  { 
+  POD pod_array[2][3];
+};
+
+@interface I
+{
+  D Property1;
+}
+@property D Property1;
+- (D) val;
+- (void) set : (D) d1;
+@end
+
+@implementation I
+@synthesize Property1;
+- (D) val { return Property1; }
+- (void) set : (D) d1 { Property1 = d1; }
+@end
+// CHECK: {{call.*@objc_memmove_collectable}}
+// CHECK: {{call.*@objc_memmove_collectable}}
+