From b68c73a1938d382d891ace12938e990a60fc2ec0 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 9 Aug 2024 12:14:17 +0200 Subject: components: add test on dependencies Components themselves can have public dependencies; those need to be available (as compile deps) for the combined library. Verify this by extending the test such that the public dependency is actually used in the header file. While there, also increase coverage by assertions. --- tests/test_cases/deps/components/foodep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_cases/deps/components/foodep.cpp') diff --git a/tests/test_cases/deps/components/foodep.cpp b/tests/test_cases/deps/components/foodep.cpp index 70dc491..e26c335 100644 --- a/tests/test_cases/deps/components/foodep.cpp +++ b/tests/test_cases/deps/components/foodep.cpp @@ -3,7 +3,7 @@ #include #include -int foodep(int x) { +foo_t foodep(foo_t x) { std::cout << "foodep(" << x << ")" << std::endl; return x + 2; } -- cgit v1.2.3