const enum SWIGTYPE & typemap tests

more enum tests


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-11-28 19:13:27 +00:00
commit c7186b6d23
4 changed files with 47 additions and 15 deletions

View file

@ -15,7 +15,7 @@ namespace EnumDirector {
struct A;
enum Hello {
hi, hello, yo, awright
hi, hello, yo, awright = 10
};
class Foo {
@ -24,8 +24,10 @@ namespace EnumDirector {
virtual Hello say_hi(Hello h){ return h;}
virtual Hello say_hello(Hello){ return hello;}
virtual Hello say_hi(A *a){ return hi;}
virtual const Hello & say_hi_ref(const Hello & h){ printf("Foo:say_hi_ref %d\n", h); return h;}
Hello ping(Hello h){ return say_hi(h);}
const Hello & ping_ref(const Hello &h){ printf("Foo::ping_ref %d\n", h); return say_hi_ref(h);}
};
}
%}