repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
bug-3725260.php
blob
47c94d1bd05f2369627b1e752a8b7ad4635c98f6
1
<
?hh
2
3
// Test that concat binops with un-used results are not incorrectly optimized
4
// away if they can invoke side-effects. See task #3725260.
5
6
class
A
{
7
public function
__toString
()[] {
echo
"__toString()
\n
"
;
return
"heh"
; }
8
}
9
10
11
<<
__EntryPoint
>>
12
function
main_bug_3725260
() {
13
$a
=
new
A
();
14
$b
=
new
A
();
15
$a
.
$b
;
16
17
echo
"done
\n
"
;
18
}