PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/ordering.i

#
Swig | 30 lines | 21 code | 9 blank | 0 comment | 0 complexity | a0852cf9f9dc2377dacd4a315fdb9aeb MD5 | raw file
 1%module ordering
 2
 3// Ruby used to fail on the ordering of the two Class declarations below
 4
 5struct Klass {
 6  int variable;
 7};
 8
 9%{
10struct Klass {
11  int variable;
12};
13%}
14
15
16// Testing the order of various code block sections
17
18%runtime %{
19   class RuntimeSection {};
20%}
21
22%header %{
23   class HeaderSection {};
24   void HeaderMethod(RuntimeSection rs) {}
25%}
26
27%wrapper %{
28   void WrapperMethod(HeaderSection hs, RuntimeSection rs) {}
29%}
30