aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/7 run installed
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/7 run installed
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/unit/7 run installed')
-rw-r--r--meson/test cases/unit/7 run installed/foo/foo.c3
-rw-r--r--meson/test cases/unit/7 run installed/foo/meson.build7
-rw-r--r--meson/test cases/unit/7 run installed/meson.build9
-rw-r--r--meson/test cases/unit/7 run installed/prog.c5
4 files changed, 24 insertions, 0 deletions
diff --git a/meson/test cases/unit/7 run installed/foo/foo.c b/meson/test cases/unit/7 run installed/foo/foo.c
new file mode 100644
index 000000000..402c89527
--- /dev/null
+++ b/meson/test cases/unit/7 run installed/foo/foo.c
@@ -0,0 +1,3 @@
+int foo() {
+ return 0;
+}
diff --git a/meson/test cases/unit/7 run installed/foo/meson.build b/meson/test cases/unit/7 run installed/foo/meson.build
new file mode 100644
index 000000000..082f98529
--- /dev/null
+++ b/meson/test cases/unit/7 run installed/foo/meson.build
@@ -0,0 +1,7 @@
+# Try to invoke linker constant string deduplication,
+# to ensure we are not clobbering shared strings.
+# Name everything possible just as "foo".
+foolib = shared_library('foo', 'foo.c',
+ install_dir : 'foo',
+ install : true)
+
diff --git a/meson/test cases/unit/7 run installed/meson.build b/meson/test cases/unit/7 run installed/meson.build
new file mode 100644
index 000000000..46236fa83
--- /dev/null
+++ b/meson/test cases/unit/7 run installed/meson.build
@@ -0,0 +1,9 @@
+project('foo', 'c',
+ default_options : 'libdir=lib')
+
+subdir('foo')
+
+executable('prog', 'prog.c',
+ link_with : foolib,
+ install : true)
+
diff --git a/meson/test cases/unit/7 run installed/prog.c b/meson/test cases/unit/7 run installed/prog.c
new file mode 100644
index 000000000..8e61e6ef3
--- /dev/null
+++ b/meson/test cases/unit/7 run installed/prog.c
@@ -0,0 +1,5 @@
+int foo();
+
+int main(int argc, char **argv) {
+ return foo();
+}