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

« back to all changes in this revision

Viewing changes to Examples/test-suite/overload_simple.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:
11
11
 
12
12
class Bar {
13
13
public:
14
 
  Bar(int i = 0) {}
 
14
  Bar(int i = 0) { num = i; }
15
15
 
16
16
  static int foo(int a=0, int b=0) {return 0;}
 
17
 
 
18
  int num;
17
19
};
18
20
 
 
21
char *foo() {
 
22
   return (char *) "foo:";
 
23
}
19
24
char *foo(int) {
20
25
   return (char*) "foo:int";
21
26
}
37
42
char *foo(void *) {
38
43
   return (char *) "foo:void *";
39
44
}
 
45
char *foo(Foo *, int) {
 
46
   return (char *) "foo:Foo *,int";
 
47
}
 
48
char *foo(double, Bar *) {
 
49
   return (char *) "foo:double,Bar *";
 
50
}
40
51
 
41
52
char *blah(double) {
42
53
   return (char *) "blah:double";
97
108
};
98
109
%}
99
110
 
 
111
%inline %{
 
112
void ull() {}
 
113
void ull(unsigned long long ull) {}
 
114
void ll() {}
 
115
void ll(long long ull) {}
 
116
%}
 
117
 
100
118
%include cmalloc.i
101
119
%malloc(void);
102
120