Sign in
fuchsia
/
third_party
/
swig
/
5cc90e6f5b321cae8e7290dc055d3e13543a2155
/
.
/
Examples
/
test-suite
/
smart_pointer_typedef.i
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
;
}
};
%}