parent
6a12f3fc16
commit
1670fca36f
8 changed files with 72 additions and 1 deletions
@ -0,0 +1,6 @@ |
||||
int main(int argc, char **argv) |
||||
{ |
||||
int (^callback)(void) = ^ int (void) { return 0; }; |
||||
|
||||
return callback(); |
||||
} |
@ -0,0 +1,12 @@ |
||||
project('blocks-dependency', 'c') |
||||
|
||||
id = meson.get_compiler('c').get_id() |
||||
if id != 'clang' or build_machine.system() == 'windows' |
||||
error('MESON_SKIP_TEST: Only clang on unix-like systems supports the blocks extension.') |
||||
endif |
||||
|
||||
exe = executable('main', 'main.c', |
||||
dependencies: dependency('blocks') |
||||
) |
||||
|
||||
test('test-blocks', exe) |
Loading…
Reference in new issue