summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/install/bar.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-05-27 14:15:43 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-04 13:24:51 +0200
commit4602b1967533b61a1fc2ea1bef5c16dcc30e84ba (patch)
tree8ea596fb3447b23f08aba8f17d460f0382fcacdd /tests/test_cases/deps/install/bar.cpp
parent5e20b5cf029695be07d791a76a1e21a316ca5a0f (diff)
downloadrules-cc-4602b1967533b61a1fc2ea1bef5c16dcc30e84ba.tar.gz
rules-cc: Add regression tests for install-with-deps rule...
...in both release and debug modes. Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
Diffstat (limited to 'tests/test_cases/deps/install/bar.cpp')
-rw-r--r--tests/test_cases/deps/install/bar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_cases/deps/install/bar.cpp b/tests/test_cases/deps/install/bar.cpp
new file mode 100644
index 0000000..6cc1260
--- /dev/null
+++ b/tests/test_cases/deps/install/bar.cpp
@@ -0,0 +1,7 @@
+#include "bar.hpp"
+#include <iostream>
+
+int bar(Foo *foo) {
+ std::cout << "bar" << std::endl;
+ return (foo == nullptr) ? -1 : foo->foo();
+}