1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -x objective-c++ -fblocks -o - %s 2*f4a2713aSLionel Sambuc// radar 7537770 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuctypedef struct { 5*f4a2713aSLionel Sambuc int a; 6*f4a2713aSLionel Sambuc int b; 7*f4a2713aSLionel Sambuc} s; 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambucextern void CFBasicHashApply(int (^block)(s)) { 10*f4a2713aSLionel Sambuc int used, cnt; 11*f4a2713aSLionel Sambuc for (int idx = 0; 0 < used && idx < cnt; idx++) { 12*f4a2713aSLionel Sambuc s bkt; 13*f4a2713aSLionel Sambuc if (0 < bkt.a) { 14*f4a2713aSLionel Sambuc if (!block(bkt)) { 15*f4a2713aSLionel Sambuc return; 16*f4a2713aSLionel Sambuc } 17*f4a2713aSLionel Sambuc used--; 18*f4a2713aSLionel Sambuc } 19*f4a2713aSLionel Sambuc } 20*f4a2713aSLionel Sambuc} 21*f4a2713aSLionel Sambuc 22