summaryrefslogtreecommitdiff
path: root/Tests/CMakeCommands/target_link_libraries/targetA.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeCommands/target_link_libraries/targetA.cpp')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/targetA.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/targetA.cpp b/Tests/CMakeCommands/target_link_libraries/targetA.cpp
index 3c6472e9a..d1321a15f 100644
--- a/Tests/CMakeCommands/target_link_libraries/targetA.cpp
+++ b/Tests/CMakeCommands/target_link_libraries/targetA.cpp
@@ -1,12 +1,19 @@
#include "depB.h"
#include "depC.h"
+#include "depIfaceOnly.h"
-int main(int argc, char **argv)
+#include "subdirlib.h"
+
+int main(int, char **)
{
DepA a;
DepB b;
DepC c;
- return a.foo() + b.foo() + c.foo();
+ DepIfaceOnly iface_only;
+
+ SubDirLibObject sd;
+
+ return a.foo() + b.foo() + c.foo() + iface_only.foo() + sd.foo();
}