summaryrefslogtreecommitdiff
path: root/Examples/test-suite/null_pointer.i
blob: f40d6929fdf0b10fe14320b5d60fed4efb6b2405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%module null_pointer

%inline {
  struct A {};
  
  bool funk(A* a) {
    return !a;
  }

  A* getnull() {
    return 0;
  }
}