PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/overload_return_type.i

#
Swig | 23 lines | 16 code | 7 blank | 0 comment | 0 complexity | 213eb45ec43a59bba2d76b70a6c5bfcd MD5 | raw file
 1%module overload_return_type
 2
 3// Regression test for PHP from SF#3168531 (SWIG <= 2.0.1 segfaults).
 4
 5%inline %{
 6
 7class A { };
 8class B {
 9    public:
10        int foo(int x) { return 0; }
11        A foo(const char * y) { return A(); }
12};
13
14// Regression test for PHP from SF#3208299 (there bar()'s return type wa
15// treated as always void).
16
17void foo(int i) {}
18int foo() { return 1; }
19
20int bar() { return 1; }
21void bar(int i) {}
22
23%}