CMake/Source/Checks/cm_cxx_nullptr.cxx

15 lines
103 B
C++
Raw Normal View History

2016-06-28 00:23:35 +03:00
int test(int)
{
return -1;
}
int test(int*)
{
return 0;
}
int main()
{
return test(nullptr);
}