diff options
Diffstat (limited to 'meson/test cases/common/82 add language/meson.build')
-rw-r--r-- | meson/test cases/common/82 add language/meson.build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/common/82 add language/meson.build b/meson/test cases/common/82 add language/meson.build new file mode 100644 index 000000000..e99f33a81 --- /dev/null +++ b/meson/test cases/common/82 add language/meson.build @@ -0,0 +1,10 @@ +project('add language', 'c') + +test('C', executable('cprog', 'prog.c')) + +assert(add_languages('cpp', native: false), 'Add_languages returned false on success') +assert(not add_languages('klingon', required : false), 'Add_languages returned true on failure.') + +test('C++', executable('cppprog', 'prog.cc')) + +add_languages('c', native: false) |