diff options
Diffstat (limited to 'test cases/common/94 threads/meson.build')
-rw-r--r-- | test cases/common/94 threads/meson.build | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test cases/common/94 threads/meson.build b/test cases/common/94 threads/meson.build new file mode 100644 index 0000000..6a939ff --- /dev/null +++ b/test cases/common/94 threads/meson.build @@ -0,0 +1,21 @@ +project('threads', 'cpp', 'c', + default_options : ['cpp_std=c++11']) + +cc = meson.get_compiler('c') +if cc.has_function_attribute('unused') + add_project_arguments('-DHAVE_UNUSED', language: 'c') +endif + +threaddep = dependency('threads') + +test('cppthreadtest', + executable('cppthreadprog', 'threadprog.cpp', + dependencies : threaddep + ) +) + +test('cthreadtest', + executable('cthreadprog', 'threadprog.c', + dependencies : threaddep + ) +) |