/trunk/Examples/test-suite/ordering.i
Swig | 30 lines | 21 code | 9 blank | 0 comment | 0 complexity | a0852cf9f9dc2377dacd4a315fdb9aeb MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module ordering
- // Ruby used to fail on the ordering of the two Class declarations below
- struct Klass {
- int variable;
- };
- %{
- struct Klass {
- int variable;
- };
- %}
- // Testing the order of various code block sections
- %runtime %{
- class RuntimeSection {};
- %}
- %header %{
- class HeaderSection {};
- void HeaderMethod(RuntimeSection rs) {}
- %}
- %wrapper %{
- void WrapperMethod(HeaderSection hs, RuntimeSection rs) {}
- %}