summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/public/main_links_foo.cpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-12-09 15:24:55 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-12-12 14:46:19 +0100
commit886c7b680928276d7f925d30fc206ca27d9a97d1 (patch)
tree4471690974cc15caad524274c88fff830bf2c127 /tests/test_cases/deps/public/main_links_foo.cpp
parent6e10ee13df0b83511d7fe94bb755ac53f993c0ec (diff)
downloadrules-cc-886c7b680928276d7f925d30fc206ca27d9a97d1.tar.gz
Add tests and readme
Diffstat (limited to 'tests/test_cases/deps/public/main_links_foo.cpp')
-rw-r--r--tests/test_cases/deps/public/main_links_foo.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_cases/deps/public/main_links_foo.cpp b/tests/test_cases/deps/public/main_links_foo.cpp
new file mode 100644
index 0000000..f9cc308
--- /dev/null
+++ b/tests/test_cases/deps/public/main_links_foo.cpp
@@ -0,0 +1,10 @@
+// test that foo is linked
+
+#include "foo/foo.hpp"
+#include <iostream>
+
+int main() {
+ std::cout << "main\n";
+ Foo{}.foo();
+ return 0;
+}