Commit 74f3f895 authored by Christian Schnorr's avatar Christian Schnorr Committed by Maximilian Stemmer-Grabow

Add more test cases

parent fc83035f
class Main {
public static void main(String[] arguments) {
Main main = new Main();
main.getArray()[0] = 1;
new Main().getArray()[0] = 2;
}
public int[] getArray() {
return new int[0];
}
}
class Main {
public static void main(String[] arguments) {
System.out = null;
}
}
class Main {
public static void main(String[] arguments) {
System = null;
}
}
class Main {
public static void main(String[] arguments) {
Main main = new Main();
main.getX().x = null;
new Main().getX().x = null;
}
public X getX() {
return new X();
}
}
class X {
public X x;
}
class TooMuchArrayAccess {
public static void main(String[] args) {
int[] array = new int[3];
array[2][1] = 42;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment