diff options
Diffstat (limited to 'tests/test_cases/deps/components')
-rw-r--r-- | tests/test_cases/deps/components/TARGETS | 8 | ||||
-rw-r--r-- | tests/test_cases/deps/components/foo.hpp | 4 | ||||
-rw-r--r-- | tests/test_cases/deps/components/foodep.cpp | 2 | ||||
-rw-r--r-- | tests/test_cases/deps/components/foodep.hpp | 4 |
4 files changed, 15 insertions, 3 deletions
diff --git a/tests/test_cases/deps/components/TARGETS b/tests/test_cases/deps/components/TARGETS index edd62db..62a599c 100644 --- a/tests/test_cases/deps/components/TARGETS +++ b/tests/test_cases/deps/components/TARGETS @@ -44,4 +44,12 @@ { "type": ["@", "rules", "CC", "install-with-deps"] , "targets": ["main-shared"] } +, "installed_static": + { "type": ["@", "rules", "CC", "install-with-deps"] + , "targets": ["combined_static_lib"] + } +, "installed_shared": + { "type": ["@", "rules", "CC", "install-with-deps"] + , "targets": ["combined_shared_lib"] + } } diff --git a/tests/test_cases/deps/components/foo.hpp b/tests/test_cases/deps/components/foo.hpp index f919ea3..45c286c 100644 --- a/tests/test_cases/deps/components/foo.hpp +++ b/tests/test_cases/deps/components/foo.hpp @@ -1,6 +1,8 @@ #ifndef FOO_HPP #define FOO_HPP -int foo(int); +#include "foodep.hpp" + +foo_t foo(foo_t); #endif diff --git a/tests/test_cases/deps/components/foodep.cpp b/tests/test_cases/deps/components/foodep.cpp index 70dc491..e26c335 100644 --- a/tests/test_cases/deps/components/foodep.cpp +++ b/tests/test_cases/deps/components/foodep.cpp @@ -3,7 +3,7 @@ #include <iostream> #include <ostream> -int foodep(int x) { +foo_t foodep(foo_t x) { std::cout << "foodep(" << x << ")" << std::endl; return x + 2; } 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 |