Simplify test-suite/overload_return_type.i (checked that it still fails before
the fix it's a regression test for) and added _runme.php for it. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c61cc387bc
commit
5d765893ed
2 changed files with 12 additions and 9 deletions
|
|
@ -4,17 +4,10 @@
|
|||
|
||||
%inline %{
|
||||
|
||||
#include <string>
|
||||
using namespace std;
|
||||
class A { };
|
||||
class B {
|
||||
public:
|
||||
int foo(int x);
|
||||
A foo(string y);
|
||||
int foo(int x) { return 0; }
|
||||
A foo(const char * y) { return A(); }
|
||||
};
|
||||
%}
|
||||
|
||||
%{
|
||||
int B::foo(int x) { return 0; }
|
||||
A B::foo(string y) { return A(); }
|
||||
%}
|
||||
|
|
|
|||
10
Examples/test-suite/php/overload_return_type_runme.php
Normal file
10
Examples/test-suite/php/overload_return_type_runme.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
require "tests.php";
|
||||
require "overload_return_type.php";
|
||||
|
||||
$b = new B;
|
||||
check::equal($b->foo(1), 0, "");
|
||||
check::classname("A", $b->foo("test"));
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue