aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/kr-style-block.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/kr-style-block.c')
-rw-r--r--test/CodeGen/kr-style-block.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/kr-style-block.c b/test/CodeGen/kr-style-block.c
new file mode 100644
index 0000000000..ccaa2c5144
--- /dev/null
+++ b/test/CodeGen/kr-style-block.c
@@ -0,0 +1,12 @@
+// RUN: clang-cc -emit-llvm %s -o %t
+
+void foo (void(^)());
+
+int main()
+{
+foo(
+ ^()
+ {
+ }
+);
+}