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