Skip to content

Commit 56c9c02

Browse files
Add test for string literals length
1 parent af958f0 commit 56c9c02

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
623 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public class Test {
2+
public static int check(int i) {
3+
String s = "\u0000";
4+
5+
if (i == 0)
6+
assert(s.length() == 1);
7+
else if (i == 1)
8+
assert(s.length() != 1);
9+
10+
return s.length();
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
Test.class
3+
--refine-strings --function Test.check
4+
assertion at file Test.java line 6 .* SUCCESS
5+
assertion at file Test.java line 8 .* FAILURE
6+
^EXIT=10$
7+
^SIGNAL=0$

0 commit comments

Comments
 (0)