aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/75 link with shared module on osx
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/failing/75 link with shared module on osx')
-rw-r--r--meson/test cases/failing/75 link with shared module on osx/meson.build8
-rw-r--r--meson/test cases/failing/75 link with shared module on osx/module.c3
-rw-r--r--meson/test cases/failing/75 link with shared module on osx/prog.c4
-rw-r--r--meson/test cases/failing/75 link with shared module on osx/test.json7
4 files changed, 22 insertions, 0 deletions
diff --git a/meson/test cases/failing/75 link with shared module on osx/meson.build b/meson/test cases/failing/75 link with shared module on osx/meson.build
new file mode 100644
index 000000000..bf18b3626
--- /dev/null
+++ b/meson/test cases/failing/75 link with shared module on osx/meson.build
@@ -0,0 +1,8 @@
+project('link with shared module', 'c')
+
+if host_machine.system() != 'darwin'
+ error('MESON_SKIP_TEST test only fails on OSX')
+endif
+
+m = shared_module('mymodule', 'module.c')
+e = executable('prog', 'prog.c', link_with : m)
diff --git a/meson/test cases/failing/75 link with shared module on osx/module.c b/meson/test cases/failing/75 link with shared module on osx/module.c
new file mode 100644
index 000000000..81b0d5af0
--- /dev/null
+++ b/meson/test cases/failing/75 link with shared module on osx/module.c
@@ -0,0 +1,3 @@
+int func(void) {
+ return 1496;
+}
diff --git a/meson/test cases/failing/75 link with shared module on osx/prog.c b/meson/test cases/failing/75 link with shared module on osx/prog.c
new file mode 100644
index 000000000..8164d8da1
--- /dev/null
+++ b/meson/test cases/failing/75 link with shared module on osx/prog.c
@@ -0,0 +1,4 @@
+
+int main(int argc, char **argv) {
+ return func();
+}
diff --git a/meson/test cases/failing/75 link with shared module on osx/test.json b/meson/test cases/failing/75 link with shared module on osx/test.json
new file mode 100644
index 000000000..7db17d8d7
--- /dev/null
+++ b/meson/test cases/failing/75 link with shared module on osx/test.json
@@ -0,0 +1,7 @@
+{
+ "stdout": [
+ {
+ "line": "test cases/failing/75 link with shared module on osx/meson.build:8:0: ERROR: target links against shared modules. This is not permitted on OSX"
+ }
+ ]
+}