☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
01-Basic
/
18.ck.disabled
☽
☼
src/test/01-Basic/18.ck.disabled
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// 18.ck : out of bounds ( fail-correct )
2
3
// declare int array
4
int a[2];
5
6
// use as associative array
7
4 => a["foo"];
8
9
// assignment
10
4 => a[1];
11
12
// this should fail
13
5 => a[2];
14
15
<<<"success">>>;