Commit 9c3fc1af authored by uwgwb's avatar uwgwb Committed by uwdkn

Group 5: Semantic test cases

parent 4d229754
class Arr {
public static void main(String[] args) {
int[] x = null;
}
}
class IntBool {
public static void main(String[] args) {
boolean x = 0;
}
}
class Foo {
public int bar(int x) {
;;;;
return x;
}
public static void main(String[] args) {
Foo foo = new Foo();
foo.bar(0);
}
}
class Arrays {
public int[] x;
public int[][] y;
public static void main(String[] args) {
eq();
}
public boolean eq() {
return x == y;
}
}
class A {}
class B {}
class AB {
public static void main(String[] agrs) {
eq(new A(), new B());
}
public boolean eq(A a, B b) {
return a == b;
}
}
class IntBool {
public static void main(String[] args) {
int x = false;
}
}
class Foo {
public static void main(String[] args) {
new Foo();
}
}
\ No newline at end of file
class Foo {
public static void main(String[] args) {
new int[5];
}
}
\ No newline at end of file
class A {
public int a() {
return 42;
}
}
class B {
public A a;
}
class C {
public B a;
}
class D {
public C a;
}
class E {
public int a() {
return new D().a.a.a.a();
}
public static void main(String[] args) {}
}
class Fac {
public int factorial(int i) {
if(i == 1) return 1;
return factorial(i - 1);
}
public static void main(String[] args) {}
}
class Foo {
public int x;
public int x() { return 2; }
public static void main(String[] args) {
Foo foo = new Foo();
int a = foo.x();
int b = foo.x;
}
}
\ No newline at end of file
class Shadow {
public int x;
public boolean secret() {
boolean x = false;
return x;
}
public static void main(String[] args) {
}
}
class Shadow {
public boolean x;
public boolean secret() {
int x = 42;
return x;
}
public static void main(String[] args) {
}
}
class Foo {
public int x(int y) throws abc {
return 42;
}
public static void main(String[] args) {
}
}
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