brintos

brintos / llvm-project-archived public Read only

0
0
Text · 816 B · de81ee0 Raw
28 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fblocks -fobjc-gc -emit-llvm -o %t %s2// RUN: grep -F '@objc_assign_strongCast' %t  | count 43// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fblocks -fobjc-gc -emit-llvm -o %t %s4// RUN: grep -F '@objc_assign_strongCast' %t  | count 45 6@interface DSATextSearch @end7 8DSATextSearch **_uniqueIdToIdentifierArray = (0);9void foo (int _nextId)10{11	_uniqueIdToIdentifierArray[_nextId] = 0;  // objc_assign_strongCast12}13 14typedef struct {15    unsigned long state;16    id *itemsPtr;17    void (^bp)(void);18    unsigned long *mutationsPtr;19    unsigned long extra[5];20} NSFastEnumerationState;21 22void foo1 (NSFastEnumerationState * state)23{24   state->itemsPtr = 0;25   state->bp = ^{};26}27 28