From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/CodeGen/blocks.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/CodeGen/blocks.c') diff --git a/test/CodeGen/blocks.c b/test/CodeGen/blocks.c index 6888356..b7b6a2d 100644 --- a/test/CodeGen/blocks.c +++ b/test/CodeGen/blocks.c @@ -33,3 +33,10 @@ typedef double ftype(double); ftype ^test2 = ^ftype { return 0; }; + +// rdar://problem/8605032 +void f3_helper(void (^)(void)); +void f3() { + _Bool b = 0; + f3_helper(^{ if (b) {} }); +} -- cgit v1.1