PageRenderTime 20ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/evil_diamond.i

#
Swig | 27 lines | 19 code | 8 blank | 0 comment | 0 complexity | 525eda92854f4b902967f2dbff992bbc MD5 | raw file
 1%module(ruby_minherit="1") evil_diamond
 2
 3%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo;		// Ruby, wrong class name
 4%warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar;		// Ruby, wrong class name
 5%warnfilter(SWIGWARN_RUBY_WRONG_NAME) 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) spam;	// Ruby, wrong class name - C#, D & Java, PHP multiple inheritance
11
12%inline %{
13
14class foo { };
15
16class bar : public foo {
17};
18
19class baz : public foo {
20};
21
22class spam : public bar, public baz {
23};
24
25foo *test(foo *f) { return f; }
26%}
27