summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/null_pointer.i
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/test-suite/null_pointer.i')
-rw-r--r--trunk/Examples/test-suite/null_pointer.i10
1 files changed, 10 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/null_pointer.i b/trunk/Examples/test-suite/null_pointer.i
new file mode 100644
index 000000000..59d554c2b
--- /dev/null
+++ b/trunk/Examples/test-suite/null_pointer.i
@@ -0,0 +1,10 @@
+%module null_pointer
+
+%inline {
+ struct A {};
+
+ bool func(A* a) {
+ return !a;
+ }
+}
+