aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/112 subdir subproject/prog
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/112 subdir subproject/prog')
-rw-r--r--meson/test cases/common/112 subdir subproject/prog/meson.build5
-rw-r--r--meson/test cases/common/112 subdir subproject/prog/prog.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/common/112 subdir subproject/prog/meson.build b/meson/test cases/common/112 subdir subproject/prog/meson.build
new file mode 100644
index 000000000..360b5f59d
--- /dev/null
+++ b/meson/test cases/common/112 subdir subproject/prog/meson.build
@@ -0,0 +1,5 @@
+subproject('sub')
+libSub = dependency('sub', fallback: ['sub', 'libSub'])
+
+exe = executable('prog', 'prog.c', dependencies: libSub)
+test('subdir subproject', exe)
diff --git a/meson/test cases/common/112 subdir subproject/prog/prog.c b/meson/test cases/common/112 subdir subproject/prog/prog.c
new file mode 100644
index 000000000..9035ff114
--- /dev/null
+++ b/meson/test cases/common/112 subdir subproject/prog/prog.c
@@ -0,0 +1,5 @@
+#include <sub.h>
+
+int main(void) {
+ return sub();
+}