import source from 1.3.40
[external/swig.git] / Examples / test-suite / union_scope.i
1 %module union_scope
2
3 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) nRState;          // Ruby, wrong class name
4 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) nRState_rstate;   // Ruby, wrong class name
5
6 %inline %{
7 class nRState { 
8 public: 
9   union { 
10     int i; 
11   } rstate; 
12 }; 
13 %}