summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Export/testLib9ObjIface.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-01 14:25:50 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-01 14:28:00 (GMT)
commit7776ce98c3fc1fc656c646ea783c23aee27261a2 (patch)
tree89664e3d07dddfacb10b7b624a2d8a2da7822b08 /Tests/ExportImport/Export/testLib9ObjIface.c
parentbafe655b11c876b45a5ce1fbaf4643593bdd22a3 (diff)
downloadCMake-7776ce98c3fc1fc656c646ea783c23aee27261a2.zip
CMake-7776ce98c3fc1fc656c646ea783c23aee27261a2.tar.gz
CMake-7776ce98c3fc1fc656c646ea783c23aee27261a2.tar.bz2
Tests: Add cases for usage requirements of linked object libs
Add tests to cover transitive usage requirements on installation and export of targets that link to object libraries. Issue: #14778
Diffstat (limited to 'Tests/ExportImport/Export/testLib9ObjIface.c')
-rw-r--r--Tests/ExportImport/Export/testLib9ObjIface.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/testLib9ObjIface.c b/Tests/ExportImport/Export/testLib9ObjIface.c
new file mode 100644
index 0000000..e75440a
--- /dev/null
+++ b/Tests/ExportImport/Export/testLib9ObjIface.c
@@ -0,0 +1,11 @@
+/* Duplicate symbols from other sources to verify that this source
+ is not included when the object library is used. */
+int testLib9ObjMissing(void);
+int testLib9ObjPub(void)
+{
+ return testLib9ObjMissing();
+}
+int testLib9ObjPriv(void)
+{
+ return testLib9ObjMissing();
+}