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
10 * Created by Blaine Garst on 10/15/08.
16 #import <Block_private.h>
18 // CONFIG rdar://6295848
20 int main(int argc
, char *argv
[]) {
22 void (^block
)(void) = (void (^)(void))0;
23 void (^blockcopy
)(void) = Block_copy(block
);
25 if (blockcopy
!= (void (^)(void))0) {
26 printf("whoops, somehow we copied NULL!\n");
29 // make sure we can also
30 Block_release(blockcopy
);
32 //_Block_destroy(blockcopy);
34 printf("%s: success\n", argv
[0]);