diff options
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/unit/113 complex link cases/meson.build | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/unit/113 complex link cases/meson.build b/test cases/unit/113 complex link cases/meson.build index d3387c2ce..31753edad 100644 --- a/test cases/unit/113 complex link cases/meson.build +++ b/test cases/unit/113 complex link cases/meson.build @@ -38,3 +38,12 @@ s1 = static_library('t6-s1', 's1.c') s2 = static_library('t6-s2', 's2.c', link_with: s1, install: true) s3 = static_library('t6-s3', 's3.c', link_with: s2, install: true) e = executable('t6-e1', 'main.c', link_with: s3) + +# Regression test: s1 gets promoted to link_whole and that used to make all other +# libraries in the list (s2) to be ignored. +# Executable only needs to link with s3. +# See https://github.com/mesonbuild/meson/issues/11956. +s1 = static_library('t7-s1', 's1.c') +s2 = static_library('t7-s2', 's2.c') +s3 = static_library('t7-s3', 's3.c', link_with: [s1, s2], install: true) +e = executable('t7-e1', 'main.c', link_with: s3) |
