1// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10
2// rdar://10001085
3
4int main() {
5  ^{
6                __attribute__((__blocks__(byref))) int index = ({ int __a; int __b; __a < __b ? __b : __a; });
7   };
8}
9
10// PR13229
11// rdar://11777609
12typedef struct {} Z;
13
14typedef int (^B)(Z);
15
16void testPR13229() {
17  Z z1;
18  B b1 = ^(Z z1) { return 1; };
19  b1(z1);
20}
21