tests ordering of section blocks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
54716583f2
commit
a0ddc0cfe8
1 changed files with 30 additions and 0 deletions
30
SWIG/Examples/test-suite/ordering.i
Normal file
30
SWIG/Examples/test-suite/ordering.i
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
%module ordering
|
||||||
|
|
||||||
|
// Ruby used to fail on the ordering of the two Class declarations below
|
||||||
|
|
||||||
|
struct Class {
|
||||||
|
int var;
|
||||||
|
};
|
||||||
|
|
||||||
|
%{
|
||||||
|
struct Class {
|
||||||
|
int var;
|
||||||
|
};
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
// 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) {}
|
||||||
|
%}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue