☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
06-Errors
/
error-array-size.ck
☽
☼
src/test/06-Errors/error-array-size.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
int x[3];
2
3
// reserve capacity
4
6 => x.capacity;
5
6
// should throw exception, since 4 is beyond x.size(), even if within x.capacity
7
<<< x[4] >>>;
8