diff --git a/tests/complex_expressions2.aer b/tests/complex_expressions2.aer new file mode 100644 index 0000000..759e79c --- /dev/null +++ b/tests/complex_expressions2.aer @@ -0,0 +1,16 @@ +class Program { + + void test(int $a = (int(int $a, int $b, int $c){return $a+$b+$c;})(14, 10+2, 15), int $b = 0, int $c = 98) { + print($a + PHP_EOL); + print($b + PHP_EOL); + print($c + PHP_EOL); + } + + void main() { + $this->test(); + $this->test(512); + $this->test(1024, 32); + $this->test(1000, 2000, 4000); + } + +} diff --git a/tests/complex_expressions2.exp b/tests/complex_expressions2.exp new file mode 100644 index 0000000..856b5af --- /dev/null +++ b/tests/complex_expressions2.exp @@ -0,0 +1,12 @@ +41 +0 +98 +512 +0 +98 +1024 +32 +98 +1000 +2000 +4000