blob: eb74317d8fa5d2d99c008e50474efd18ecbd9f01 [file] [log] [blame]
Fariborz Jahanianfd02ed72009-09-21 18:54:29 +00001// RUN: clang-cc -triple x86_64-apple-darwin10 -fblocks -fnext-runtime -fobjc-gc -fobjc-newgc-api -emit-llvm -o %t %s &&
2// RUN: grep -F '@objc_assign_strongCast' %t | count 4 &&
3// RUN: true
4
5@interface DSATextSearch @end
6
7DSATextSearch **_uniqueIdToIdentifierArray = ((void *)0);
8void foo (int _nextId)
9{
10 _uniqueIdToIdentifierArray[_nextId] = 0; // objc_assign_strongCast
11}
12
13typedef struct {
14 unsigned long state;
15 id *itemsPtr;
16 void (^bp)();
17 unsigned long *mutationsPtr;
18 unsigned long extra[5];
19} NSFastEnumerationState;
20
21void foo1 (NSFastEnumerationState * state)
22{
23 state->itemsPtr = 0;
24 state->bp = ^{};
25}
26