10 lines
160 B
Text
10 lines
160 B
Text
|
/* Test accessing arrays with invalid index*/
|
||
|
class Main {
|
||
|
void main() {
|
||
|
int[] x;
|
||
|
x = new int[5];
|
||
|
|
||
|
x[8] = 5; //this should fail
|
||
|
}
|
||
|
}
|