added profile test

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-06-14 09:09:12 +00:00
commit 0b945f2dd3
4 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,36 @@
%module profiletest
%inline %{
class A {
public:
A() {}
};
class B
{
A aa;
public:
B() {}
A fn(const A* a) {
return *a;
}
int fi(int a) {
return a;
}
int fj(const A* a) {
return 10;
}
B* fk(int i) {
return this;
}
const char* fl(int i) {
return "hello";
}
};
%}