diff options
Diffstat (limited to 'clang/test/Sema/block-literal.c')
| -rw-r--r-- | clang/test/Sema/block-literal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/block-literal.c b/clang/test/Sema/block-literal.c index 3a091395d04..7f1579d0cc7 100644 --- a/clang/test/Sema/block-literal.c +++ b/clang/test/Sema/block-literal.c @@ -78,6 +78,9 @@ void test_arguments() { (1 ? c : c)('x'); } +static int global_x = 10; +void (^global_block)(void) = ^{ printf("global x is %d\n", global_x); }; + #if 0 // Old syntax. FIXME: convert/test. void test_byref() { |

