pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:23:05 by Arne Goedeke <el@laramies.com>
622b4549ce2737857decacca0a4a745106511a9f (
4
lines) (+
4
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
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')