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