Skip to content

Commit c9ad518

Browse files
committed
Add multiline string length tests.
1 parent 67ac243 commit c9ad518

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
'test_type': 'output_check',
3+
'errors': """
4+
"""
5+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// This file should pass with \r\n and \n.
2+
3+
new str1[] = "hello";
4+
#assert sizeof(str1) == 6
5+
6+
new str2[] = "hello\
7+
";
8+
#assert sizeof(str2) == 6
9+
10+
new str3[] = "hello\
11+
";
12+
#assert sizeof(str3) == 6
13+
14+
new str4[] = "hello\
15+
world";
16+
#assert sizeof(str4) == 11
17+
18+
new str5[] = "hello
19+
world";
20+
#assert sizeof(str5) == 23
21+
22+
#pragma unused str1, str2, str3, str4, str5
23+

0 commit comments

Comments
 (0)