Commit e338d07a authored by uwgwb's avatar uwgwb Committed by uwdkn

Group 5: Additional semantic test cases

parent cd1682c7
class Foo {
public static void main(String[] args) {
boolean bar = true + false;
}
}
class Foo {
public static void main(String[] args) {
if(1 && 0) {
System.out.println(42);
}
}
}
class Foo {
public static void main(String[] args) {
args[0] = null;
}
}
class Foo {
public static void main(int[] args) {}
}
class Foo {
public void bar() {}
public static void main(String[] args) {
(new Foo()).bar();
(new Bar()).bar();
}
}
class Bar {
public void bar() {}
}
class SystemShadowing {
public SystemShadowing System;
public SystemShadowing out;
public void println(boolean x) { }
public void nonstatic() {
System.out.println(42);
}
public static void main(String[] args) {
SystemShadowing x = new SystemShadowing();
x.nonstatic();
}
}
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