summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/blocks-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/blocks-1.c')
-rw-r--r--clang/test/CodeGen/blocks-1.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/clang/test/CodeGen/blocks-1.c b/clang/test/CodeGen/blocks-1.c
index f2677f3c275..10498cb0049 100644
--- a/clang/test/CodeGen/blocks-1.c
+++ b/clang/test/CodeGen/blocks-1.c
@@ -1,11 +1,11 @@
// RUN: clang-cc %s -emit-llvm -o %t -fblocks &&
-// RUN: grep "_Block_object_dispose" %t | count 15 &&
-// RUN: grep "__copy_helper_block_" %t | count 12 &&
-// RUN: grep "__destroy_helper_block_" %t | count 12 &&
+// RUN: grep "_Block_object_dispose" %t | count 17 &&
+// RUN: grep "__copy_helper_block_" %t | count 16 &&
+// RUN: grep "__destroy_helper_block_" %t | count 16 &&
// RUN: grep "__Block_byref_id_object_copy_" %t | count 2 &&
// RUN: grep "__Block_byref_id_object_dispose_" %t | count 2 &&
// RUN: grep "i32 135)" %t | count 2 &&
-// RUN: grep "_Block_object_assign" %t | count 9
+// RUN: grep "_Block_object_assign" %t | count 10
#include <stdio.h>
@@ -57,7 +57,14 @@ void test5() {
void test6() {
__block int i;
^{ i=1; }();
- ^{};
+ ^{}();
+}
+
+void test7() {
+ ^{
+ __block int i;
+ ^{ i = 1; }();
+ }();
}
int main() {
OpenPOWER on IntegriCloud