summaryrefslogtreecommitdiffstats
path: root/compiler-rt/BlocksRuntime/tests/c99.c
diff options
context:
space:
mode:
authorBlaine Garst <blaine@apple.com>2010-08-04 23:34:21 +0000
committerBlaine Garst <blaine@apple.com>2010-08-04 23:34:21 +0000
commitbe67b4aa2011bb2de0404971c343b1d8a573d823 (patch)
treebc4dae13980a2e07916d9d62166d25c3da38f09d /compiler-rt/BlocksRuntime/tests/c99.c
parenta1c0f8b5c81d8da22d649c8e6feb9f85949cdcfa (diff)
downloadbcm5719-llvm-be67b4aa2011bb2de0404971c343b1d8a573d823.tar.gz
bcm5719-llvm-be67b4aa2011bb2de0404971c343b1d8a573d823.zip
add unit tests
llvm-svn: 110278
Diffstat (limited to 'compiler-rt/BlocksRuntime/tests/c99.c')
-rw-r--r--compiler-rt/BlocksRuntime/tests/c99.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/compiler-rt/BlocksRuntime/tests/c99.c b/compiler-rt/BlocksRuntime/tests/c99.c
new file mode 100644
index 00000000000..8f31ab3fdfb
--- /dev/null
+++ b/compiler-rt/BlocksRuntime/tests/c99.c
@@ -0,0 +1,20 @@
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+
+//
+// c99.m
+//
+// CONFIG C99 rdar://problem/6399225
+
+#import <stdio.h>
+#import <stdlib.h>
+
+int main(int argc, char *argv[]) {
+ void (^blockA)(void) = ^ { ; };
+ blockA();
+ printf("%s: success\n", argv[0]);
+ exit(0);
+}
OpenPOWER on IntegriCloud