blob: d4e874f5c247cf390a91a5c0368de08bd2dfcdd4 [file] [log] [blame]
%module smart_pointer_typedef
%inline %{
struct Foo {
int x;
int getx() { return x; }
};
typedef Foo *FooPtr;
class Bar {
Foo *f;
public:
Bar(Foo *f) : f(f) { }
FooPtr operator->() {
return f;
}
};
%}