From: Fariborz Jahanian Date: Tue, 15 Jun 2010 23:49:10 +0000 (+0000) Subject: Moved objective-c++ code gen. tests to their own directory and X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a71107b9a0aa647c18e7655c53d9940ab390963;p=clang Moved objective-c++ code gen. tests to their own directory and 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 --- diff --git a/test/CodeGenObjCXX/copyable-property-object.mm b/test/CodeGenObjCXX/copyable-property-object.mm new file mode 100644 index 0000000000..8962c536ea --- /dev/null +++ b/test/CodeGenObjCXX/copyable-property-object.mm @@ -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}} + diff --git a/test/CodeGenCXX/implicit-copy-assign-operator.mm b/test/CodeGenObjCXX/implicit-copy-assign-operator.mm similarity index 100% rename from test/CodeGenCXX/implicit-copy-assign-operator.mm rename to test/CodeGenObjCXX/implicit-copy-assign-operator.mm diff --git a/test/CodeGenCXX/implicit-copy-constructor.mm b/test/CodeGenObjCXX/implicit-copy-constructor.mm similarity index 100% rename from test/CodeGenCXX/implicit-copy-constructor.mm rename to test/CodeGenObjCXX/implicit-copy-constructor.mm