From 7148d1f80ade0c59cfa48776287a654eb8269c7c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 30 Nov 2004 20:08:38 +0000 Subject: [PATCH] const enum reference runtime test git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6795 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/java/director_enum_runme.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Examples/test-suite/java/director_enum_runme.java b/Examples/test-suite/java/director_enum_runme.java index 87874c6db..063d9daaa 100644 --- a/Examples/test-suite/java/director_enum_runme.java +++ b/Examples/test-suite/java/director_enum_runme.java @@ -19,12 +19,18 @@ public class director_enum_runme { if (a.ping(Hallo.awright) != Hallo.yo) { throw new RuntimeException ( "a.ping()" ); } + if (a.ping_ref(Hallo.awright) != Hallo.hello) { + throw new RuntimeException ( "a.ping_ref()" ); + } Foo b = new Foo(); if (b.ping(Hallo.awright) != Hallo.awright) { throw new RuntimeException ( "b.ping()" ); } + if (b.ping_ref(Hallo.awright) != Hallo.awright) { + throw new RuntimeException ( "b.ping_ref()" ); + } } } @@ -32,5 +38,8 @@ class MyFoo extends Foo { public Hallo say_hi(Hallo h) { return Hallo.yo; } + public Hallo say_hi_ref(Hallo h) { + return Hallo.hello; + } }