blob: aa0d4abe25cb7b46b5d35394df27fd92b7c6c22b [file] [log] [blame]
%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;
}
};
%}