summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Examples/test-suite/preproc_defined.i2
-rw-r--r--Examples/test-suite/python/preproc_defined_runme.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/Examples/test-suite/preproc_defined.i b/Examples/test-suite/preproc_defined.i
index 13bbd6698..21afa86ec 100644
--- a/Examples/test-suite/preproc_defined.i
+++ b/Examples/test-suite/preproc_defined.i
@@ -125,4 +125,4 @@ void another_macro_checking(void) {
#endif
#define __attribute__(x)
-
+%import <preproc_defined.h>
diff --git a/Examples/test-suite/python/preproc_defined_runme.py b/Examples/test-suite/python/preproc_defined_runme.py
index af46816be..4be937b8d 100644
--- a/Examples/test-suite/python/preproc_defined_runme.py
+++ b/Examples/test-suite/python/preproc_defined_runme.py
@@ -3,6 +3,9 @@ import preproc_defined
if preproc_defined.call_checking() != 1:
raise RuntimeError
+if preproc_defined.y != 8:
+ raise RuntimeError()
+
d = preproc_defined.Defined()
d.defined = 10