diff options
author | Brad King <brad.king@kitware.com> | 2009-07-11 14:10:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-11 14:10:51 (GMT) |
commit | 3621e073a88433af4408a8d7d58974b4e8254b54 (patch) | |
tree | 770cb042e07ef712ce4ec395985881f7735e096e /Tests/ExportImport/Export/testLib6.c | |
parent | 28b1912aa3eba8427cc3d0a4954f7366fcb338b9 (diff) | |
download | CMake-3621e073a88433af4408a8d7d58974b4e8254b54.zip CMake-3621e073a88433af4408a8d7d58974b4e8254b54.tar.gz CMake-3621e073a88433af4408a8d7d58974b4e8254b54.tar.bz2 |
ENH: Test export/import of link interface languages
This extends the ExportImport test. The Export project creates a C++
static library and exports it. Then the Import project links the
library into a C executable. On most platforms the executable will link
only if the C++ linker is chosen correctly.
Diffstat (limited to 'Tests/ExportImport/Export/testLib6.c')
-rw-r--r-- | Tests/ExportImport/Export/testLib6.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/testLib6.c b/Tests/ExportImport/Export/testLib6.c new file mode 100644 index 0000000..493ca07 --- /dev/null +++ b/Tests/ExportImport/Export/testLib6.c @@ -0,0 +1,5 @@ +extern int testLib6cxx(void); +int testLib6(void) +{ + return testLib6cxx(); +} |