Introduce ObjCMessageExpr::getReceiverRange() to get the source range of the receiver.
[clang.git] / test / CodeGenObjC / objc2-new-gc-api-strongcast.m
blob0413910855e587049ccc3dfe959b6322d5fb9388
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -fobjc-gc -emit-llvm -o %t %s
2 // RUN: grep -F '@objc_assign_strongCast' %t  | count 4
3 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fblocks -fobjc-gc -emit-llvm -o %t %s
4 // RUN: grep -F '@objc_assign_strongCast' %t  | count 4
6 @interface DSATextSearch @end
8 DSATextSearch **_uniqueIdToIdentifierArray = (0);
9 void foo (int _nextId)
11         _uniqueIdToIdentifierArray[_nextId] = 0;  // objc_assign_strongCast
14 typedef struct {
15     unsigned long state;
16     id *itemsPtr;
17     void (^bp)();
18     unsigned long *mutationsPtr;
19     unsigned long extra[5];
20 } NSFastEnumerationState;
22 void foo1 (NSFastEnumerationState * state)
24    state->itemsPtr = 0;
25    state->bp = ^{};