diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-25 16:22:46 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-25 16:22:46 +0200 |
commit | 1825c775dafd591e2a9e6bf12065e8c41727b96f (patch) | |
tree | 2e6aa43ba606ad2b086e5d73590bb56db4ee4bc9 /tests/test_cases/deps/components/foodep.cpp | |
parent | e85a871e579ef77b6b226249d199a50d8a91f08f (diff) | |
download | rules-cc-1825c775dafd591e2a9e6bf12065e8c41727b96f.tar.gz |
Add a test for the use of the "components" field of a library
Diffstat (limited to 'tests/test_cases/deps/components/foodep.cpp')
-rw-r--r-- | tests/test_cases/deps/components/foodep.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_cases/deps/components/foodep.cpp b/tests/test_cases/deps/components/foodep.cpp new file mode 100644 index 0000000..70dc491 --- /dev/null +++ b/tests/test_cases/deps/components/foodep.cpp @@ -0,0 +1,9 @@ +#include "foodep.hpp" + +#include <iostream> +#include <ostream> + +int foodep(int x) { + std::cout << "foodep(" << x << ")" << std::endl; + return x + 2; +} |