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