blob: ad2e456f8a95e198890587ba36ae14f281d2d0ba [file] [log] [blame]
%module typedef_classforward_same_name
%inline %{
typedef struct Foo Foo;
struct Foo {
int x;
};
int extractFoo(Foo* foo) { return foo->x; }
struct Boo {
int x;
};
typedef struct Boo Boo;
int extractBoo(Boo* boo) { return boo->x; }
%}