#include #include #include "null.h" void call_test(char *) { std::cout << "call_test(char *) called" << std::endl; } void call_test(int) { std::cout << "call_test(int) called" << std::endl; } void NullTest::run() { if (std::is_same::value) { std::cout << "NULL == 0" << std::endl; } if (std::is_same::value) { std::cout << "NULL == (void *)0" << std::endl; } if (std::is_same::value) { std::cout << "NULL == __null" << std::endl; } if (std::is_same::value) { std::cout << "NULL == nullptr" << std::endl; } call_test(0); call_test(nullptr); }