xref: /aosp_15_r20/external/clang/test/CodeGenObjC/objc2-strong-cast-1.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
2*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -triple x86_64-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
3*67e74705SXin Li
4*67e74705SXin Li@interface I {
5*67e74705SXin Li  __attribute__((objc_gc(strong))) int *i_IdocumentIDs;
6*67e74705SXin Li  __attribute__((objc_gc(strong))) long *l_IdocumentIDs;
7*67e74705SXin Li  __attribute__((objc_gc(strong))) long long *ll_IdocumentIDs;
8*67e74705SXin Li  __attribute__((objc_gc(strong))) float *IdocumentIDs;
9*67e74705SXin Li  __attribute__((objc_gc(strong))) double *d_IdocumentIDs;
10*67e74705SXin Li}
11*67e74705SXin Li- (void) _getResultsOfMatches;
12*67e74705SXin Li@end
13*67e74705SXin Li
14*67e74705SXin Li@implementation I
15*67e74705SXin Li-(void) _getResultsOfMatches {
16*67e74705SXin Li    IdocumentIDs[2] = IdocumentIDs[3];
17*67e74705SXin Li    d_IdocumentIDs[2] = d_IdocumentIDs[3];
18*67e74705SXin Li    l_IdocumentIDs[2] = l_IdocumentIDs[3];
19*67e74705SXin Li    ll_IdocumentIDs[2] = ll_IdocumentIDs[3];
20*67e74705SXin Li    i_IdocumentIDs[2] = i_IdocumentIDs[3];
21*67e74705SXin Li}
22*67e74705SXin Li
23*67e74705SXin Li@end
24*67e74705SXin Li
25