CursorVisitor: Pull ObjCMessageExpr and explicit casts into data-recursion algorithm.
[clang.git] / test / CodeGenObjC / objc2-strong-cast.m
blob7291c4e8d2d446b3ac939d4223855305067e768b
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
4 @interface I {
5   __attribute__((objc_gc(strong))) signed long *_documentIDs;
6   __attribute__((objc_gc(strong))) id *IdocumentIDs;
8 - (void) _getResultsOfMatches;
9 @end
11 @implementation I
12 -(void) _getResultsOfMatches {
13     _documentIDs[2] = _documentIDs[3];
14     IdocumentIDs[2] = IdocumentIDs[3];
17 @end