diff options
Diffstat (limited to 'lib/BlocksRuntime/tests/modglobal.c')
-rw-r--r-- | lib/BlocksRuntime/tests/modglobal.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/BlocksRuntime/tests/modglobal.c b/lib/BlocksRuntime/tests/modglobal.c new file mode 100644 index 000000000..562d5a5cc --- /dev/null +++ b/lib/BlocksRuntime/tests/modglobal.c @@ -0,0 +1,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; + +} |