Aer/tests/reference_test.aer
belliash ed8dab7870
All checks were successful
The build was successful.
Add more tests.
2019-02-05 19:48:38 +01:00

14 lines
154 B
Plaintext

class Program {
function add_by_ref(int &$val) {
$val += 7;
}
function main() {
int $num = 7;
$this->add_by_ref($num);
var_dump($num);
}
}