1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o - %s | FileCheck -check-prefix CHECK-C %s
2 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o - %s | FileCheck -check-prefix CHECK-CP %s
15 @interface NamedObject
17 struct type_s type_s_ivar;
19 - (void) setSome : (struct type_s) arg;
20 - (struct type_s) getSome;
21 @property(assign) struct type_s aggre_prop;
24 @implementation NamedObject
25 - (void) setSome : (struct type_s) arg
29 - (struct type_s) getSome
33 @synthesize aggre_prop = type_s_ivar;
36 struct type_s some = {{1234}, (id)0};
38 struct type_s get(void)
43 void f(const struct type_s *in, struct type_s *out) {
48 struct Derived : type_s { };
50 void foo(Derived* src, Derived* dest) {
55 // CHECK-C: call ptr @objc_memmove_collectable
56 // CHECK-C: call ptr @objc_memmove_collectable
57 // CHECK-C: call ptr @objc_memmove_collectable
59 // CHECK-CP: call ptr @objc_memmove_collectable
60 // CHECK-CP: call ptr @objc_memmove_collectable
61 // CHECK-CP: call ptr @objc_memmove_collectable
62 // CHECK-CP: call ptr @objc_memmove_collectable