Extend diamond multi test to fix go
This commit is contained in:
parent
b08713f09f
commit
0268dde201
5 changed files with 30 additions and 0 deletions
|
|
@ -1,3 +1,11 @@
|
||||||
|
#ifndef MULTI_IMPORT_H
|
||||||
|
#define MULTI_IMPORT_H
|
||||||
|
|
||||||
|
class WWW {
|
||||||
|
public:
|
||||||
|
void nullop() const {}
|
||||||
|
};
|
||||||
|
|
||||||
class XXX
|
class XXX
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -15,3 +23,5 @@ class ZZZ : public XXX
|
||||||
public:
|
public:
|
||||||
int testz() { return 2;}
|
int testz() { return 2;}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* MULTI_IMPORT_H */
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,7 @@ class ZZZ : public XXX
|
||||||
public:
|
public:
|
||||||
int testz();
|
int testz();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
void use_www_a(const WWW& w) {w.nullop();}
|
||||||
|
%}
|
||||||
|
|
|
||||||
|
|
@ -11,3 +11,7 @@ class YYY : public XXX
|
||||||
public:
|
public:
|
||||||
int testy();
|
int testy();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
void use_www_b(const WWW& w) {w.nullop();}
|
||||||
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
%import "multi_import_d.i"
|
%import "multi_import_d.i"
|
||||||
|
|
||||||
|
// NB: this module is only imported, never compiled, so it's not necessary to
|
||||||
|
// include the header for testing purposes.
|
||||||
|
|
||||||
class XXX
|
class XXX
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
%module multi_import_d
|
%module multi_import_d
|
||||||
|
|
||||||
%constant int myval = 1234;
|
%constant int myval = 1234;
|
||||||
|
|
||||||
|
%{
|
||||||
|
#include "multi_import.h"
|
||||||
|
%}
|
||||||
|
|
||||||
|
class WWW {
|
||||||
|
public:
|
||||||
|
void nullop() const;
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue