swig/SWIG/Examples/test-suite/enums.i
Marcelo Matus 38089c5a2a add virtual destructors where needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-11 12:10:44 +00:00

27 lines
289 B
OpenEdge ABL

/* Test whether anonymous enums are supported well. */
%module "enums"
%inline %{
typedef enum {
CSP_ITERATION_FWD,
CSP_ITERATION_BWD
} foo1;
typedef enum foo2 {
ABCDE = 0,
FGHJI = 1
} foo3;
void
bar1(foo1 x) {}
void
bar2(enum foo2 x) {}
void
bar3(foo3 x) {}
%}