[PHP] Don't generate code referencing undefined $r
This could happen in overloaded methods which returned void and took at least one const std::string& parameter.
This commit is contained in:
parent
7345a33ccf
commit
3f9ebb31b9
4 changed files with 26 additions and 1 deletions
|
|
@ -22,6 +22,12 @@ const std::string& test_const_reference(const std::string &x) {
|
|||
return x;
|
||||
}
|
||||
|
||||
void test_const_reference_returning_void(const std::string &) {
|
||||
}
|
||||
|
||||
void test_const_reference_returning_void(const std::string &, int) {
|
||||
}
|
||||
|
||||
void test_pointer(std::string *x) {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue