2 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3 // See https://llvm.org/LICENSE.txt for license information.
4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // CONFIG open rdar://6439600
11 #define NUMBER_OF_BLOCKS 100
12 int main (int argc
, const char * argv
[]) {
13 int (^x
[NUMBER_OF_BLOCKS
])();
16 for(i
=0; i
<NUMBER_OF_BLOCKS
; i
++) x
[i
] = ^{ return i
; };
18 for(i
=0; i
<NUMBER_OF_BLOCKS
; i
++) {
20 printf("%s: failure, %d != %d\n", argv
[0], x
[i
](), i
);
25 printf("%s: success\n", argv
[0]);