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:
parent
13374b6a80
commit
0b945f2dd3
4 changed files with 60 additions and 0 deletions
36
Examples/test-suite/profiletest.i
Normal file
36
Examples/test-suite/profiletest.i
Normal 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";
|
||||
}
|
||||
};
|
||||
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue