Updating submodules
[hiphop-php.git] / hphp / test / slow / bug-3725260.php
blob47c94d1bd05f2369627b1e752a8b7ad4635c98f6
1 <?hh
3 // Test that concat binops with un-used results are not incorrectly optimized
4 // away if they can invoke side-effects. See task #3725260.
6 class A {
7 public function __toString()[] { echo "__toString()\n"; return "heh"; }
11 <<__EntryPoint>>
12 function main_bug_3725260() {
13 $a = new A();
14 $b = new A();
15 $a . $b;
17 echo "done\n";