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
sync the repo
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
string_newline.php
blob
38b3d93deae86675b93ce14b633895e5ecb1d376
1
<
?hh
2
3
/**
4
* Regression test: newlines in strings used to mess up line numbers in error
5
* messages.
6
*/
7
function
test
(
?varray
<
int
>
$a
):
void
{
8
$x
=
"
9
"
;
10
$x
=
"
11
"
;
12
$x
=
"
13
"
;
14
$x
=
"
15
"
;
16
$x
=
"
17
"
;
18
$x
=
"
19
"
;
20
$a
[
0
];
21
}