aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2009-11-17 19:33:30 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2009-11-17 19:33:30 +0000
commit5e530af5d51572a0ed5dbe50da54bd333840c63d (patch)
treec92cec772032e2ddc3a9364c84c169a5f137d189 /test
parentaecbf24a6bad049437f8fec97e557d414003a3db (diff)
Added block type introspection support.
As per Fariborz's suggestion, committed now but can be reverted later if the used flag is problematic for Apple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/blocks-2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CodeGen/blocks-2.c b/test/CodeGen/blocks-2.c
index fa4de3cf14..a88ce9de87 100644
--- a/test/CodeGen/blocks-2.c
+++ b/test/CodeGen/blocks-2.c
@@ -1,5 +1,9 @@
// RUN: clang-cc -g %s -emit-llvm -o %t -fblocks
-// RUN: grep "func.start" %t | count 4
+// RUN: grep "func.start" %t | count 4 &&
+// RUN: clang-cc -g %s -triple i386-unknown-unknown -emit-llvm -o %t -fblocks -fblock-introspection &&
+// RUN: grep "v8@?0i4" %t | count 1 &&
+// RUN: clang-cc -g %s -triple i386-unknown-unknown -emit-llvm -o %t -fblocks &&
+// RUN: grep "v8@?0i4" %t | count 0 &&
// 1 declaration, 1 bar, 1 test_block_dbg and 1 for the block.
// XFAIL: *