aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/37 has function external dependency/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/failing/37 has function external dependency/meson.build')
-rw-r--r--meson/test cases/failing/37 has function external dependency/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson/test cases/failing/37 has function external dependency/meson.build b/meson/test cases/failing/37 has function external dependency/meson.build
new file mode 100644
index 000000000..45a3bc246
--- /dev/null
+++ b/meson/test cases/failing/37 has function external dependency/meson.build
@@ -0,0 +1,8 @@
+project('has function ext dep', 'c')
+
+cc = meson.get_compiler('c')
+
+mylib = shared_library('mylib', 'mylib.c')
+mylib_dep = declare_dependency(link_with : mylib)
+# Only external dependencies can work here
+cc.has_function('malloc', dependencies : mylib_dep)