aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/blocks-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/blocks-1.c')
-rw-r--r--test/CodeGen/blocks-1.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/CodeGen/blocks-1.c b/test/CodeGen/blocks-1.c
index 8572f8d6cf..ae63e73a18 100644
--- a/test/CodeGen/blocks-1.c
+++ b/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 10 &&
-// RUN: grep "__copy_helper_block_" %t | count 6 &&
-// RUN: grep "__destroy_helper_block_" %t | count 6 &&
+// 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_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 6
+// RUN: grep "_Block_object_assign" %t | count 7
#include <stdio.h>
@@ -50,11 +50,17 @@ int test4() {
int g;
+void test5() {
+ __block struct { int i; } i;
+ ^{ (void)i; }();
+}
+
int main() {
int rv = 0;
test1();
test2();
test3();
rv += test4();
+ test5();
return rv;
}