add infinity loop case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
980eb368af
commit
a64330d5eb
2 changed files with 21 additions and 0 deletions
|
|
@ -15,6 +15,22 @@ public:
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class Foo
|
||||||
|
{
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef Foo FooBar;
|
||||||
|
|
||||||
|
class CBaz
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
typedef FooBar Foo;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
%module using2
|
%module using2
|
||||||
|
|
||||||
|
%warnfilter(315);
|
||||||
|
|
||||||
|
using ::baz;
|
||||||
|
|
||||||
%warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */
|
%warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
@ -19,4 +23,5 @@ using Y::Foo;
|
||||||
|
|
||||||
int spam(Foo::value_type x) { return x; }
|
int spam(Foo::value_type x) { return x; }
|
||||||
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue