mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 05:11:15 -06:00
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.
7 lines
112 B
C++
7 lines
112 B
C++
extern "C" int testLib6cxx(void)
|
|
{
|
|
// Reference C++ standard library symbols.
|
|
delete new int;
|
|
return 0;
|
|
}
|