diff options
Diffstat (limited to 'meson/test cases/unit/78 nostdlib/meson.build')
-rw-r--r-- | meson/test cases/unit/78 nostdlib/meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meson/test cases/unit/78 nostdlib/meson.build b/meson/test cases/unit/78 nostdlib/meson.build new file mode 100644 index 000000000..9c5f949b2 --- /dev/null +++ b/meson/test cases/unit/78 nostdlib/meson.build @@ -0,0 +1,14 @@ +project('own libc', 'c') + +# Not related to this test, but could not find a better place for this test. +assert(meson.get_cross_property('nonexisting', 'defaultvalue') == 'defaultvalue', + 'Cross prop getting is broken.') + +# A simple project that uses its own libc. + +# Note that we don't need to specify anything, the flags to use +# stdlib come from the cross file. + +exe = executable('selfcontained', 'prog.c') + +test('standalone test', exe) |