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