summaryrefslogtreecommitdiff
path: root/Examples/test-suite/java_enums.i
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2010-05-14 19:03:01 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2010-05-14 19:03:01 +0000
commit76bbd7373d469149b8cfa091c32cf35d34861da3 (patch)
tree222176e3eb067230f0bd3f4ab14d742bbfa86410 /Examples/test-suite/java_enums.i
parent8a169eb0cb80b85d656f728b6659c6937dca9148 (diff)
downloadswig-76bbd7373d469149b8cfa091c32cf35d34861da3.tar.gz
Fix wrapping of C++ enum boolean values when using %javaconst(1)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/java_enums.i')
-rw-r--r--Examples/test-suite/java_enums.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/Examples/test-suite/java_enums.i b/Examples/test-suite/java_enums.i
index 4d2fe92c8..855913d06 100644
--- a/Examples/test-suite/java_enums.i
+++ b/Examples/test-suite/java_enums.i
@@ -58,3 +58,9 @@ static const int FOUR = 4;
%inline %{
enum Numero { Quattro = FOUR };
%}
+
+// Test boolean enums
+%inline %{
+typedef enum { PLAY = true, STOP = false } play_state;
+%}
+