swig/Examples/test-suite/smart_pointer_const2.i
Dave Beazley 3a75cd354e new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-16 03:55:36 +00:00

20 lines
245 B
OpenEdge ABL

%module smart_pointer_const2
%inline %{
struct Foo {
int x;
int getx() const { return x; }
int test() { return x; }
};
class Bar {
Foo *f;
public:
Bar(Foo *f) : f(f) { }
const Foo *operator->() {
return f;
}
};
%}