summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/chain/main.cpp
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2024-09-10 16:12:27 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2024-09-10 18:10:15 +0200
commit71a2459012df43239657aede7f24733f2e9dfc46 (patch)
tree2471ae91de479850a2adfb12c27c60469c3cd983 /tests/test_cases/deps/chain/main.cpp
parent363abcecfc2e486892018401a1b8816b78b6fdd1 (diff)
downloadrules-cc-71a2459012df43239657aede7f24733f2e9dfc46.tar.gz
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 <klaus.aehlig@huawei.com>
Diffstat (limited to 'tests/test_cases/deps/chain/main.cpp')
-rw-r--r--tests/test_cases/deps/chain/main.cpp7
1 files changed, 7 insertions, 0 deletions
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.");
+}