From 71a2459012df43239657aede7f24733f2e9dfc46 Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Tue, 10 Sep 2024 16:12:27 +0200 Subject: Add test verifying dependency chains Shared libraries require their (direct and indirect) dependencies to be built in a position independent way. This might cause such a dependent library to be built twice. As, however, shared libraries need not forward their static dependencies this does not cause staging conflicts. Verify that this is also the case for distant indirect dependencies. Co-authored-by: Klaus Aehlig --- tests/test_cases/deps/chain/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/test_cases/deps/chain/main.cpp (limited to 'tests/test_cases/deps/chain/main.cpp') diff --git a/tests/test_cases/deps/chain/main.cpp b/tests/test_cases/deps/chain/main.cpp new file mode 100644 index 0000000..db539d4 --- /dev/null +++ b/tests/test_cases/deps/chain/main.cpp @@ -0,0 +1,7 @@ +#include "foo.hpp" +#include "qux.hpp" + +int main() { + print_foo("Everthing is fine."); + print_qux("Everthing is ok."); +} -- cgit v1.2.3