blob: 258e7b1ffd2eefdd2bd0d2415aed2c53f5b5d0e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
%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) {}
%}
|