mirror of
https://github.com/reactos/CMake.git
synced 2025-02-07 20:38:49 +00:00
![Brad King](/assets/img/avatar_default.png)
This test creates a C executable that links to a C++ static library. On most platforms the executable will not link unless the C++ linker is chosen correctly.
7 lines
104 B
C++
7 lines
104 B
C++
extern "C" int foo(void)
|
|
{
|
|
// Reference C++ standard library symbols.
|
|
delete new int;
|
|
return 0;
|
|
}
|