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/SWIG@4899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
19 lines
292 B
OpenEdge ABL
19 lines
292 B
OpenEdge ABL
/* Swig 1.3.6 fails to understand the "explicit" keyword.
|
|
SF Bug #445233, reported by Krzysztof Kozminski
|
|
<kozminski@users.sf.net>.
|
|
*/
|
|
|
|
%module constructor_explicit
|
|
%inline %{
|
|
|
|
class Foo {
|
|
public:
|
|
explicit Foo() { }
|
|
explicit Foo(int) {};
|
|
};
|
|
|
|
Foo test(Foo x) {
|
|
return x;
|
|
}
|
|
|
|
%}
|