summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/ordering.i
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/test-suite/ordering.i')
-rw-r--r--trunk/Examples/test-suite/ordering.i30
1 files changed, 30 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/ordering.i b/trunk/Examples/test-suite/ordering.i
new file mode 100644
index 000000000..258e7b1ff
--- /dev/null
+++ b/trunk/Examples/test-suite/ordering.i
@@ -0,0 +1,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) {}
+%}
+