1 %module(ruby_minherit="1") evil_diamond_ns
2 
3 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::foo;		// Ruby, wrong class name
4 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::bar;		// Ruby, wrong class name
5 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) Blah::baz;		// Ruby, wrong class name
6 %warnfilter(SWIGWARN_RUBY_WRONG_NAME,
7 	    SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
8 	    SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
9 	    SWIGWARN_D_MULTIPLE_INHERITANCE,
10 	    SWIGWARN_PHP_MULTIPLE_INHERITANCE) Blah::spam;	// Ruby, wrong class name - C#, D & Java, PHP multiple inheritance
11 
12 %inline %{
13 namespace Blah {
14 class foo { };
15 
16 class bar : public foo {
17 };
18 
19 class baz : public foo {
20 };
21 
22 class spam : public bar, public baz {
23 };
24 
test(foo * f)25 foo *test(foo *f) { return f; }
26 }
27 %}
28 
29