explicit is a C# keyword so the explicit.i testcase fails.
Removed explicit.i altogether and merged test into constructor_explicit.i as it is almost identical. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
453d891460
commit
1ad7cc4bdc
2 changed files with 6 additions and 15 deletions
|
|
@ -1,9 +1,15 @@
|
||||||
|
/* Swig 1.3.6 fails to understand the "explicit" keyword.
|
||||||
|
SF Bug #445233, reported by Krzysztof Kozminski
|
||||||
|
<kozminski@users.sf.net>.
|
||||||
|
*/
|
||||||
|
|
||||||
%module constructor_explicit
|
%module constructor_explicit
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
public:
|
public:
|
||||||
explicit Foo() { }
|
explicit Foo() { }
|
||||||
|
explicit Foo(int) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
Foo test(Foo x) {
|
Foo test(Foo x) {
|
||||||
|
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
/* Swig 1.3.6 fails to understand the "explicit" keyword.
|
|
||||||
SF Bug #445233, reported by Krzysztof Kozminski
|
|
||||||
<kozminski@users.sf.net>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
%module "explicit"
|
|
||||||
|
|
||||||
%inline %{
|
|
||||||
|
|
||||||
class A {
|
|
||||||
public:
|
|
||||||
explicit A(int) {};
|
|
||||||
};
|
|
||||||
|
|
||||||
%}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue