Corey Minyard
3cc67d42f3
[Go] Add a test for godirectorin with const char **
...
This exercises a bug that was found with this fairly complex mapping, it
wasn't putting newlines in the proper place. A previous commit added
the newlines, this makes sure it doesn't happen again.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
2022-04-18 19:55:34 -05:00
William S Fulton
5cc4591ae7
Consistent cpp11 testing in test-suite
...
Move HAVE_CXX11 into makefiles so that running test-suite
from top level directory or in the language's test-suite directory
is consistent. For example, running 'make check-java-test-suite'
behaves the same as 'cd Examples/test-suite/java && make check'.
2022-03-27 19:34:20 +01:00
William S Fulton
ffe2f85417
go_multicpp_setup make function correction
2022-03-27 12:44:19 +01:00
William S Fulton
c5f209706e
Further makefile refactoring for multicpptests
2022-03-27 11:27:58 +01:00
Ian Lance Taylor
90aa3f75ba
[Go] Implement %extend base methods in child classes.
...
Fixes #337
2022-03-18 18:34:28 -07:00
Ian Lance Taylor
b819363117
[Go] Don't convert arrays to pointers if there is a "gotype" typemap entry.
...
Fixes #749
2022-03-15 12:18:47 -07:00
Ian Lance Taylor
70d530adfc
swig -go: treat a nil argument as NULL
...
Let Go code pass "nil" when calling a C++ function that accepts a
pointer to a class. The Go "nil" will be treated as a C++ "nullptr".
Fixes #2203
2022-03-08 15:15:05 -08:00
Ian Lance Taylor
27bdbc1f05
swig -go: treat non-const references as pointers
...
Also clean up the handling of int* and int& to convert between the C
type int and the Go type int, which are often different sizes.
Fixes #2210
2022-03-05 21:57:36 -08:00
Seth R Johnson
fc2b90acd1
Add a "diamond" pattern to multi-impmort test
...
This tests whether multiple modules can correctly import
the same common module.
```
a -> d
-> b -> c -> d*
```
2022-02-12 19:40:03 -05:00
Olly Betts
d2d2bfa05f
Add CHANGES entry and regression test for #676
2022-01-29 22:35:29 +13:00
ERROR
d73f933c4b
Support std::array in Golang ( #2045 )
...
Support std::array in Golang
Closes #2045
2022-01-04 12:12:56 +13:00
William S Fulton
f318bb8286
Add missing clean targets
...
template_typedef_cplx2 files are generated by the template_typedef_import.multicpptest
but can also be cleaned by the template_typedef_cplx2.cpptest target.
2020-10-10 15:02:26 +01:00
Ian Lance Taylor
7aafe3d8b2
Fix all Go tests to build with "go build"
...
Tested against Go 1.6 through Go 1.13beta1, and gccgo.
Fixes #1607
2019-08-08 14:30:50 -07:00
Ian Lance Taylor
8a1c09e280
Fix Go tests to run in module mode
...
Stop using relative imports and add a go.mod file.
Tested against Go 1.6 through Go pre-1.13, and gccgo.
2019-04-24 21:43:38 -07:00
William S Fulton
83ea2280e2
Fix Python compile errors with overloading and varargs
...
Fixes wrapping overloaded functions/constructors where a vararg
function is declared after a non-vararg function.
This is a long standing bug in the Python layer exposed since fastunpack
was turned on by default.
2019-02-25 19:27:23 +00:00
William S Fulton
67190cbb2e
Add import_fragment test back in to Go test-suite
2017-06-16 19:24:22 +01:00
William S Fulton
b08d6ddbad
Temporarily disable failing tests
2017-06-06 07:14:18 +01:00
William S Fulton
dcc5911839
Fix handling of typedef'd function pointers for Go
...
Add equivalent runtime tests for Python and Java
2017-03-17 07:49:21 +00:00
William S Fulton
67edda3bf5
Remove unused cvsignore target
2017-03-10 23:25:31 +00:00
William S Fulton
6e9184b6f8
Fix std::vector of pointers which failed if a pointer to a pointer of the container element type existed (Python)
...
Closes SF Bug 2359417 created after commit 93f0390322 (svn rev 10958)
2016-07-28 22:51:22 +01:00
Ian Lance Taylor
0f54384ee3
[Go] Fix use of goout typemap when calling base method by
...
forcing the "type" attribute to the value we need.
2016-04-18 15:30:06 -07:00
William S Fulton
155e31626c
Duplicate tests that are run twice as both C and C++ tests to fix parallel make: overload_extend
2016-02-21 19:24:11 +00:00
William S Fulton
0bd41dc14d
rename overload_extendc testcase
2016-02-21 18:04:04 +00:00
William S Fulton
a00b4f4463
Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_cpointer
2016-02-21 18:04:04 +00:00
William S Fulton
819bd9c97e
Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_cdata
2016-02-21 18:04:04 +00:00
William S Fulton
9600c95234
Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_carrays
2016-02-21 18:04:04 +00:00
William S Fulton
78b113558f
Duplicate tests that are run twice as both C and C++ tests to fix parallel make: keyword_rename
2016-02-21 18:04:04 +00:00
William S Fulton
bc3bf51af2
Duplicate tests that are run twice as both C and C++ tests to fix parallel make: empty
2016-02-21 18:03:14 +00:00
Alec Cooper
14178be139
Fail if nocgo version fails
2016-01-23 16:17:33 -05:00
Alec Cooper
bec00500d6
Handle weak linking on OSX
...
If symbol is not defined at link time (even if it's weak/weak_import), the
linker must explicitly be told that's ok.
2016-01-23 16:16:00 -05:00
William S Fulton
ca64b06229
Consistent quoting in Makefile
2015-08-21 22:48:34 +01:00
William S Fulton
e00a8026a6
More remove SWIG_LIB variable
2015-08-21 22:48:34 +01:00
William S Fulton
3718b810c7
Don't generate constructor wrappers if a base class has a private constructor
...
g++-5 errors out with this now with errors such as:
default_constructor_wrap.cxx:665:27: error: use of deleted function ‘FFF::FFF()’
result = (FFF *)new FFF();
^
default_constructor_wrap.cxx:314:7: note: ‘FFF::FFF()’ is implicitly deleted because the default definition would be ill-formed:
class FFF : public F {
^
default_constructor_wrap.cxx:301:4: error: ‘F::~F()’ is private
~F() { }
^
default_constructor_wrap.cxx:314:7: error: within this context
2015-07-07 20:15:55 +01:00
Ian Lance Taylor
11d8403c3c
[Go] Fix member variables in base classes to handle CWRAP_NATURAL_VAR
...
correctly. Add a test case for the problem.
Fixes #339 .
2015-06-20 17:42:44 -07:00
Ian Lance Taylor
c6b3088e58
[Go] Add Makefile testing support for changes in upcoming Go 1.5 release.
...
No effect on the SWIG program itself.
2015-06-19 14:29:38 -07:00
Ian Lance Taylor
a6a9a89524
[Go] Fix overloading on an undefined type.
2015-03-06 17:51:30 -08:00
Ian Lance Taylor
9ad497c08e
[Go] Add -cgo option, required for Go version 1.5 and later.
2015-03-02 14:03:33 -08:00
Ian Lance Taylor
40f5b1ecc6
[Go] Fixes so that the go_subdir_import test will work with gccgo.
2015-02-22 11:01:24 -08:00
Misha Seltzer
fcf2b68e84
Fixed errors due to last sync.
2015-02-17 10:27:45 +02:00
Misha Seltzer
8da4d20308
Fixed SWIG go for cases when SWIG %import-s another package which is located in a subdirectory.
2015-02-17 10:27:45 +02:00
Ian Lance Taylor
96134c65a8
Change Go test case to compile with current compiler.
...
Recent changes caused this to give an error about an unused variable.
2015-02-03 13:55:41 -08:00
William S Fulton
b9b9b3cd21
Merge master and C++11 strongly typed enum support
...
Merging from master:
* 'master' of github.com:/swig/swig:
Add more docs about _global_ prefix in typemap temporary variables
Add clarification on _global_ prefix.
fix for nested template defined out of class (issue #265 )
using an unknown constant emits a notice, not a warning
Fix typo
Consistently put whitespace outside of <tt>...</tt> and not inside
wording tweak
Go: Document memory management of C++ classes allocated in Go. Fixes #266 .
revert unrelated file
Fix #224
Fixes for clang -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error
delete unmeaningful macro
Go: fix overload functions with polymorphic issue
del tmp files
GoLang:fix overload functions with polymorphic issue
2014-12-07 17:33:16 +00:00
William S Fulton
713d3d5973
Add c++11 strongly typed enum support for Go
2014-11-28 20:40:37 +00:00
Anthony Li
d0b6a4bfc5
del tmp files
2014-10-06 19:35:33 +08:00
Anthony Li
60da096a07
GoLang:fix overload functions with polymorphic issue
2014-10-06 19:26:07 +08:00
Ian Lance Taylor
acaaa0f31f
[Go] Add goargout typemap.
2014-09-09 11:28:04 -07:00
Ian Lance Taylor
be145043df
Add run test case for argout.i.
2014-09-07 15:44:12 -07:00
Ian Lance Taylor
1addbb46a8
[Go] Add imtype, goin, goout, godirectorin, and godirectorout
...
typemaps, to support writing Go code to convert between types.
2014-09-05 17:54:19 -07:00
Karl Wette
32212d5cc0
Fully clean Go test-suite
2014-05-29 02:24:33 +02:00
William S Fulton
2b5499a262
Slight simplification of test-suite build for new out-of-source changes
...
Provide default SRCDIR and SCRIPTDIR variables in common.mk and override
only where needed.
2014-05-15 23:11:07 +01:00