pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2015-04-13
2015-04-13 14:20:49 by Martin Nilsson <nilsson@opera.com>
45f6b5dfe495e46f6b3d21b0e6683e52dbeccbde (
14
lines) (+
14
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
#pragma strict_stypes bug in switch cases.
9226:
switch (i) {case 1..: return 2; case ..-1: return 1; case 0: return 3;} ]], ({1, 1, 1, 3, 2, 2, 2}))
+
test_any([[
+
#pragma strict_types
+
int(-1..1) i = [int(0..1)]random(1);
+
switch(i)
+
{
+
case 0: return 3;
+
case 1: return 3;
+
case -1: return 3;
+
}
+
return 0;
+
]], 3)
+
+
// Breaks and continues with labels test_compile_error([[break;]]) test_compile_error([[continue;]])