cmake/Source/Checks/cm_cxx_nullptr.cxx

15 lines
103 B
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
int test(int)
{
return -1;
}
int test(int*)
{
return 0;
}
int main()
{
return test(nullptr);
}