diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-21 11:00:48 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-23 15:33:21 +0200 |
commit | 4c49c81008fc2f22c2eef2e019a11f80cd5464a8 (patch) | |
tree | 09da6796020008e9233716da1a283b30e4ca7ef2 /tests/test_cases/deps/lint/foodep.cpp | |
parent | d62cbb609f486becb6603e1712d81ba52788232e (diff) | |
download | rules-cc-4c49c81008fc2f22c2eef2e019a11f80cd5464a8.tar.gz |
Add test verifying lint information is propagated properly
... through all our various rules and forms of libraries.
Diffstat (limited to 'tests/test_cases/deps/lint/foodep.cpp')
-rw-r--r-- | tests/test_cases/deps/lint/foodep.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_cases/deps/lint/foodep.cpp b/tests/test_cases/deps/lint/foodep.cpp new file mode 100644 index 0000000..e26c335 --- /dev/null +++ b/tests/test_cases/deps/lint/foodep.cpp @@ -0,0 +1,9 @@ +#include "foodep.hpp" + +#include <iostream> +#include <ostream> + +foo_t foodep(foo_t x) { + std::cout << "foodep(" << x << ")" << std::endl; + return x + 2; +} |