Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / Rewriter / rewrite-trivial-constructor.mm
blob81c7d9b8a72ed56dda9c4a03dca39de78795f744
1 // RUN: %clang_cc1 -fms-extensions -rewrite-objc -x objective-c++ -fblocks -o - %s
2 // radar 7537770
4 typedef struct {
5         int a;
6         int b;
7 } s;
9 extern 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     }