pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2013-01-08
2013-01-08 20:01:38 by Arne Goedeke <el@laramies.com>
45fe6400e5fe9ab1875e5b6e980e25b87df07dd9 (
4
lines) (+
4
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
testsuite: test optimizer overflow checks
8372:
test_eq(0 ? "a" : 1 ? "b" : 1 ? "c" : 1, "b") test_eq(0 ? "a" : 0 ? "b" : 1 ? "c" : 1, "c")
+
// testing overflow checks
+
test_eq(-1 - 0x7fffffff, -0x80000000)
+
// testing indexing test_eq("foo"[0],'f') test_eq("foo"[1],'o')