1/*
2 * Copyright (c) 2010 Apple Inc. All rights reserved.
3 *
4 * @APPLE_LLVM_LICENSE_HEADER@
5 */
6
7/*
8 *  blockimport.c
9 *  testObjects
10 *
11 *  Created by Blaine Garst on 10/13/08.
12//  Copyright 2008 Apple, Inc. All rights reserved.
13 *
14 */
15
16
17// rdar://6289344
18// TEST_CONFIG
19
20#include <stdio.h>
21#include <Block.h>
22#include <Block_private.h>
23#include "test.h"
24
25int main() {
26    int i = 1;
27    int (^intblock)(void) = ^{ return i*10; };
28
29    void (^vv)(void) = ^{
30        testprintf("intblock returns %d\n", intblock());
31    };
32
33    // printf("Block dump %s\n", _Block_dump(vv));
34
35    void (^vvcopy)(void) = Block_copy(vv);
36    Block_release(vvcopy);
37
38    succeed(__FILE__);
39}
40