diff options
Diffstat (limited to 'clang/test/CodeGen/blocks-1.c')
-rw-r--r-- | clang/test/CodeGen/blocks-1.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/clang/test/CodeGen/blocks-1.c b/clang/test/CodeGen/blocks-1.c index ae63e73a18e..54a83515680 100644 --- a/clang/test/CodeGen/blocks-1.c +++ b/clang/test/CodeGen/blocks-1.c @@ -1,11 +1,11 @@ // RUN: clang %s -emit-llvm -o %t -fblocks -f__block && -// RUN: grep "_Block_object_dispose" %t | count 12 && -// RUN: grep "__copy_helper_block_" %t | count 8 && -// RUN: grep "__destroy_helper_block_" %t | count 8 && +// 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_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 7 +// RUN: grep "_Block_object_assign" %t | count 9 #include <stdio.h> @@ -20,7 +20,6 @@ void test1() { printf("a is %d, b is %d\n", a, b); } - void test2() { __block int a; a=1; @@ -55,6 +54,11 @@ void test5() { ^{ (void)i; }(); } +void test6() { + __block int i; + ^{ i=1; }(); +} + int main() { int rv = 0; test1(); |