/trunk/Examples/test-suite/overload_return_type.i
Swig | 23 lines | 16 code | 7 blank | 0 comment | 0 complexity | 213eb45ec43a59bba2d76b70a6c5bfcd MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module overload_return_type
- // Regression test for PHP from SF#3168531 (SWIG <= 2.0.1 segfaults).
- %inline %{
- class A { };
- class B {
- public:
- int foo(int x) { return 0; }
- A foo(const char * y) { return A(); }
- };
- // Regression test for PHP from SF#3208299 (there bar()'s return type wa
- // treated as always void).
- void foo(int i) {}
- int foo() { return 1; }
- int bar() { return 1; }
- void bar(int i) {}
- %}