diff --git a/SWIG/Examples/test-suite/anonymous_bitfield.i b/SWIG/Examples/test-suite/anonymous_bitfield.i index c077aec43..eca2c6b84 100644 --- a/SWIG/Examples/test-suite/anonymous_bitfield.i +++ b/SWIG/Examples/test-suite/anonymous_bitfield.i @@ -6,7 +6,7 @@ struct Foo { int x : 4; int y : 4; int : 2; - int f : 1; + unsigned int f : 1; unsigned int : 5; int z : 15; }; diff --git a/SWIG/Examples/test-suite/namespace_typemap.i b/SWIG/Examples/test-suite/namespace_typemap.i index 97af110c0..d4277090b 100644 --- a/SWIG/Examples/test-suite/namespace_typemap.i +++ b/SWIG/Examples/test-suite/namespace_typemap.i @@ -19,7 +19,7 @@ namespace test { } char *c_str() { return data; - }; + } }; /* A minimalistic complex class */ @@ -211,14 +211,14 @@ namespace Split { } } #endif -}; +} %inline %{ namespace Split { typedef int PosInteger; PosInteger ttest1(PosInteger x) { return x; - }; + } } %} diff --git a/SWIG/Examples/test-suite/typedef_inherit.i b/SWIG/Examples/test-suite/typedef_inherit.i index ba37ebacc..48821a146 100644 --- a/SWIG/Examples/test-suite/typedef_inherit.i +++ b/SWIG/Examples/test-suite/typedef_inherit.i @@ -25,7 +25,11 @@ char *do_blah(FooObj *f) { return f->blah(); } -typedef struct { +typedef struct spam { + virtual ~spam() + { + } + virtual char *blah() { return (char *) "Spam::blah"; } @@ -38,7 +42,7 @@ struct Grok : public Spam { } }; -char *do_blah2(Spam *s) { +static char * do_blah2(Spam *s) { return s->blah(); } %}