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