CMake/Source/Checks/cm_cxx_unique_ptr.cxx

7 lines
84 B
C++
Raw Normal View History

#include <memory>
int main()
{
std::unique_ptr<int> u(new int(0));
return *u;
}