aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit/77 nostdlib/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/unit/77 nostdlib/meson.build')
-rw-r--r--test cases/unit/77 nostdlib/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/77 nostdlib/meson.build b/test cases/unit/77 nostdlib/meson.build
new file mode 100644
index 0000000..9c5f949
--- /dev/null
+++ b/test cases/unit/77 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)