summaryrefslogtreecommitdiff
path: root/test/BlocksRuntime/modglobal.c
blob: 562d5a5cc41876a2ed033ee7ef0b60c1c4c2cc43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
#include <stdio.h>

// CONFIG

int AGlobal;

int main(int argc, char *argv[]) {
    void (^f)(void) = ^ { AGlobal++; };
    
    printf("%s: success\n", argv[0]);
    return 0;

}