~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/ordering.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%module ordering
 
2
 
 
3
// Ruby used to fail on the ordering of the two Class declarations below
 
4
 
 
5
struct Class {
 
6
  int var;
 
7
};
 
8
 
 
9
%{
 
10
struct Class {
 
11
  int var;
 
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