From bd4b9c20cef0ad2aaf8d36cf360f86e20d687770 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 17 Jun 2005 01:10:10 +0000 Subject: [PATCH] add infinity loop case git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7298 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/typedef_scope.i | 16 ++++++++++++++++ Examples/test-suite/using2.i | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/Examples/test-suite/typedef_scope.i b/Examples/test-suite/typedef_scope.i index 65adc8df8..5c04d6c5a 100644 --- a/Examples/test-suite/typedef_scope.i +++ b/Examples/test-suite/typedef_scope.i @@ -15,6 +15,22 @@ public: return data; } }; + + + +class Foo +{ +}; + +typedef Foo FooBar; + +class CBaz +{ +public: + typedef FooBar Foo; +}; + + %} diff --git a/Examples/test-suite/using2.i b/Examples/test-suite/using2.i index 29fee1b1c..8542719a1 100644 --- a/Examples/test-suite/using2.i +++ b/Examples/test-suite/using2.i @@ -1,5 +1,9 @@ %module using2 +%warnfilter(315); + +using ::baz; + %warnfilter(801) X::_FooImpl; /* Ruby, wrong class name */ %inline %{ @@ -19,4 +23,5 @@ using Y::Foo; int spam(Foo::value_type x) { return x; } + %}