diff options
Diffstat (limited to 'test/CodeGen/blocks.c')
-rw-r--r-- | test/CodeGen/blocks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/blocks.c b/test/CodeGen/blocks.c index bef44c3690..77fb0e1899 100644 --- a/test/CodeGen/blocks.c +++ b/test/CodeGen/blocks.c @@ -40,3 +40,11 @@ void f3() { _Bool b = 0; f3_helper(^{ if (b) {} }); } + +// rdar://problem/11322251 +void f4_helper(long long (^)(void)); +void f4(void) { + _Bool b = 0; + long long ll = 0; + f4_helper(^{ if (b) return ll; return 0LL; }); +} |