diff options
Diffstat (limited to 'test/CodeGen/blocks-1.c')
-rw-r--r-- | test/CodeGen/blocks-1.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGen/blocks-1.c b/test/CodeGen/blocks-1.c index 8589a7bedf..0df13790dd 100644 --- a/test/CodeGen/blocks-1.c +++ b/test/CodeGen/blocks-1.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -o %t -fblocks +// RUN: %clang_cc1 -triple thumbv7-apple-ios %s -emit-llvm -o %t -fblocks // RUN: grep "_Block_object_dispose" %t | count 12 // RUN: grep "__copy_helper_block_" %t | count 9 // RUN: grep "__destroy_helper_block_" %t | count 9 @@ -7,6 +7,15 @@ // RUN: grep "i32 135)" %t | count 2 // RUN: grep "_Block_object_assign" %t | count 5 +// RUN: %clang_cc1 -triple thumbv7-unknown-windows %s -emit-llvm -o %t -fblocks +// RUN: grep "_Block_object_dispose" %t | count 12 +// RUN: grep "__copy_helper_block_" %t | count 11 +// RUN: grep "__destroy_helper_block_" %t | count 11 +// RUN: grep "__Block_byref_object_copy_" %t | count 2 +// RUN: grep "__Block_byref_object_dispose_" %t | count 2 +// RUN: grep "i32 135)" %t | count 2 +// RUN: grep "_Block_object_assign" %t | count 5 + int printf(const char *, ...); void test1() { |