diff --git a/test cases/common/43 has function/meson.build b/test cases/common/43 has function/meson.build new file mode 100644 index 000000000..8fccaef1d --- /dev/null +++ b/test cases/common/43 has function/meson.build @@ -0,0 +1,11 @@ +project('has function', 'c') + +cc = meson.get_compiler('c') + +if not cc.has_function('printf', prefix : '#include') + error('Existing function not found.') +endif + +if cc.has_function('hfkerhisadf', prefix : '#include') + error('Found non-existant function.') +endif