diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-09 12:14:17 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-09 15:14:18 +0200 |
commit | b68c73a1938d382d891ace12938e990a60fc2ec0 (patch) | |
tree | 2f98fa1b1d76fe2bc230cccf2b2c83321667cb68 /tests/test_cases/deps/components/foodep.hpp | |
parent | 02411c104132c45f8e7f0592a3b23b500a7d26fb (diff) | |
download | rules-cc-b68c73a1938d382d891ace12938e990a60fc2ec0.tar.gz |
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.
Diffstat (limited to 'tests/test_cases/deps/components/foodep.hpp')
-rw-r--r-- | tests/test_cases/deps/components/foodep.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_cases/deps/components/foodep.hpp b/tests/test_cases/deps/components/foodep.hpp index 792c63b..ea16bb0 100644 --- a/tests/test_cases/deps/components/foodep.hpp +++ b/tests/test_cases/deps/components/foodep.hpp @@ -1,6 +1,8 @@ #ifndef FOODEP_HPP #define FOODEP_HPP -int foodep(int); +typedef int foo_t; + +foo_t foodep(foo_t); #endif |