summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ObjectLibrary/depends_lib.cpp
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2017-02-18 21:27:46 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-22 20:21:06 (GMT)
commit624021a09e7850b1f6cb75af40b17a38d98c95e3 (patch)
tree5d6a3216ae39575a69f78692f847a513549c4ee8 /Tests/RunCMake/ObjectLibrary/depends_lib.cpp
parent5da9266af50af3c2c1a827a1d162c8a9b16e7fd9 (diff)
downloadCMake-624021a09e7850b1f6cb75af40b17a38d98c95e3.zip
CMake-624021a09e7850b1f6cb75af40b17a38d98c95e3.tar.gz
CMake-624021a09e7850b1f6cb75af40b17a38d98c95e3.tar.bz2
Add test for object library dependencies
Issue: #16615
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/depends_lib.cpp')
-rw-r--r--Tests/RunCMake/ObjectLibrary/depends_lib.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/depends_lib.cpp b/Tests/RunCMake/ObjectLibrary/depends_lib.cpp
new file mode 100644
index 0000000..540b536
--- /dev/null
+++ b/Tests/RunCMake/ObjectLibrary/depends_lib.cpp
@@ -0,0 +1,7 @@
+#include <stdlib.h>
+int myobj_foo();
+
+void mylib_foo()
+{
+ exit(myobj_foo());
+}