aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/66 subproj different versions/subprojects/a
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/failing/66 subproj different versions/subprojects/a')
-rw-r--r--meson/test cases/failing/66 subproj different versions/subprojects/a/a.c5
-rw-r--r--meson/test cases/failing/66 subproj different versions/subprojects/a/a.h1
-rw-r--r--meson/test cases/failing/66 subproj different versions/subprojects/a/meson.build11
3 files changed, 17 insertions, 0 deletions
diff --git a/meson/test cases/failing/66 subproj different versions/subprojects/a/a.c b/meson/test cases/failing/66 subproj different versions/subprojects/a/a.c
new file mode 100644
index 000000000..cd41a6588
--- /dev/null
+++ b/meson/test cases/failing/66 subproj different versions/subprojects/a/a.c
@@ -0,0 +1,5 @@
+#include "c.h"
+
+int a_fun() {
+ return c_fun();
+}
diff --git a/meson/test cases/failing/66 subproj different versions/subprojects/a/a.h b/meson/test cases/failing/66 subproj different versions/subprojects/a/a.h
new file mode 100644
index 000000000..8f1d49eda
--- /dev/null
+++ b/meson/test cases/failing/66 subproj different versions/subprojects/a/a.h
@@ -0,0 +1 @@
+int a_fun();
diff --git a/meson/test cases/failing/66 subproj different versions/subprojects/a/meson.build b/meson/test cases/failing/66 subproj different versions/subprojects/a/meson.build
new file mode 100644
index 000000000..e84182a07
--- /dev/null
+++ b/meson/test cases/failing/66 subproj different versions/subprojects/a/meson.build
@@ -0,0 +1,11 @@
+project('a', 'c')
+
+c_dep = dependency('c', version:'1', fallback: ['c', 'c_dep'])
+
+alib = library('a', 'a.c',
+ dependencies: c_dep)
+
+a_dep = declare_dependency(
+ link_with: alib,
+ include_directories: include_directories('.'),
+)