summaryrefslogtreecommitdiff
path: root/tests/exec/null.cpp
blob: 5eeb3cdf2f0e6872783e2935d882dd5d1e519d3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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";
}