blob: 29c1bb5803c711ed0a77bcfb78f3126e4f2565a0 [file] [log] [blame]
Fariborz Jahanianb9dbab12011-08-23 00:27:49 +00001// 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}
Fariborz Jahanian075a5432012-06-30 00:48:59 +00009
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}