This reverts commit d618f1c3b12effd0c2bdb7d02108d3551f389d3d. This commit wasn't reviewed ahead of time and significant concerns were raised immediately after it landed. According to our developer policy this warrants immediate revert of the commit. https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy Differential Revision: https://reviews.llvm.org/D155509
21 lines
391 B
C
21 lines
391 B
C
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10
|
|
// rdar://10001085
|
|
|
|
int main(void) {
|
|
^{
|
|
__attribute__((__blocks__(byref))) int index = ({ int __a; int __b; __a < __b ? __b : __a; });
|
|
};
|
|
}
|
|
|
|
// PR13229
|
|
// rdar://11777609
|
|
typedef struct {} Z;
|
|
|
|
typedef int (^B)(Z);
|
|
|
|
void testPR13229(void) {
|
|
Z z1;
|
|
B b1 = ^(Z z1) { return 1; };
|
|
b1(z1);
|
|
}
|