blob: f14f4b15b3bf4dcc582d671f6243bde814490170 [file] [log] [blame]
Fariborz Jahanian9e0393d2012-02-04 19:06:06 +00001// RUN: %clang_cc1 -fms-extensions -rewrite-objc -fobjc-fragile-abi -x objective-c++ -fblocks -o - %s
Fariborz Jahanianc75da512010-01-13 21:41:11 +00002// radar 7537770
3
4typedef struct {
5 int a;
6 int b;
7} s;
8
9extern void CFBasicHashApply(int (^block)(s)) {
10 int used, cnt;
11 for (int idx = 0; 0 < used && idx < cnt; idx++) {
12 s bkt;
13 if (0 < bkt.a) {
14 if (!block(bkt)) {
15 return;
16 }
17 used--;
18 }
19 }
20}
21