diff options
Diffstat (limited to 'tests/exec/null.cpp')
-rw-r--r-- | tests/exec/null.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/exec/null.cpp b/tests/exec/null.cpp new file mode 100644 index 0000000..5eeb3cd --- /dev/null +++ b/tests/exec/null.cpp @@ -0,0 +1,12 @@ +#include <iostream> + +class A { public: }; + +int main() { + int *p = NULL; + std::cout << (p == NULL) << "\n"; + int x = 1; + std::cout << (&x == NULL) << "\n"; + A a; + std::cout << (&a == NULL) << "\n"; +} |