Extend diamond multi test to fix go

This commit is contained in:
Seth R Johnson 2022-02-13 14:19:52 -05:00
parent b08713f09f
commit 0268dde201
5 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,11 @@
#ifndef MULTI_IMPORT_H
#define MULTI_IMPORT_H
class WWW {
public:
void nullop() const {}
};
class XXX
{
public:
@ -15,3 +23,5 @@ class ZZZ : public XXX
public:
int testz() { return 2;}
};
#endif /* MULTI_IMPORT_H */

View File

@ -14,3 +14,7 @@ class ZZZ : public XXX
public:
int testz();
};
%inline %{
void use_www_a(const WWW& w) {w.nullop();}
%}

View File

@ -11,3 +11,7 @@ class YYY : public XXX
public:
int testy();
};
%inline %{
void use_www_b(const WWW& w) {w.nullop();}
%}

View File

@ -1,5 +1,8 @@
%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
{
public:

View File

@ -1,3 +1,12 @@
%module multi_import_d
%constant int myval = 1234;
%{
#include "multi_import.h"
%}
class WWW {
public:
void nullop() const;
};