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 rdar://6414583
8 // a smaller case of byrefcopyint
11 #include <dispatch/dispatch.h>
14 int main(int argc
, char *argv
[]) {
17 //printf("&c = %p - c = %i\n", &c, c);
20 for(i
=0; i
< 2; i
++) {
21 dispatch_block_t block
= Block_copy(^{ c
= i
; });
24 // printf("%i: &c = %p - c = %i\n", i, &c, c);
28 printf("%s: success\n", argv
[0]);