xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/objc2-strong-cast.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1// RUN: %clang_cc1 -fobjc-gc -emit-llvm -o %t %s
2// RUN: %clang_cc1 -x objective-c++ -fobjc-gc -emit-llvm -o %t %s
3
4@interface I {
5  __attribute__((objc_gc(strong))) signed long *_documentIDs;
6  __attribute__((objc_gc(strong))) id *IdocumentIDs;
7}
8- (void) _getResultsOfMatches;
9@end
10
11@implementation I
12-(void) _getResultsOfMatches {
13    _documentIDs[2] = _documentIDs[3];
14    IdocumentIDs[2] = IdocumentIDs[3];
15}
16
17@end
18
19