Commit 420e2493 authored by ufebl's avatar ufebl Committed by uwdkn

Even more semantic tests

parent d552f364
class Hello {
public static void main(String[] args) {
new Hello().main();
}
}
class Hello {
public static void main(String[] args) {
new Hello().main(null);
}
}
class InvalidNullBoolean {
public static void main(String[] args) {
boolean notNull = null;
}
}
class Test {
public static void main(String[] args) {
}
public void foo() {
bar(null);
}
public void bar(int param) {
}
}
class Test {
public static void main(String[] args) {
}
public int test() {
return null;
}
}
...@@ -3,5 +3,7 @@ class Juhuu { ...@@ -3,5 +3,7 @@ class Juhuu {
/* :) */ /* :) */
} }
public Juhuu jippii(int buch, int buch) {} public Juhuu jippii(int buch, int buch) {
return new Juhuu();
}
} }
class Test {
public static void main(String[] args) {
}
public Test field;
public void test() {
field = null;
Test variable = null;
Test[] array = null;
Test[][] array2 = null;
method(null);
new Test().method(null);
method2(null);
new Test().method2(null);
if (null == variable) {
} else if (variable == null) {
}
while (null != variable) {
}
while (field != null) {
}
if (null == null) {
}
}
public Test method(Test test) {
return null;
}
public Test[] method2(Test[] test) {
return null;
}
}
class Test {
public static void main(String[] args) {
}
public void[] field;
}
class Test {
public static void main(String[] args) {
}
public void test(void[] param) {
}
}
class Test {
public static void main(String[] args) {
}
public void[] test() {
return null;
}
}
class Main {
public static void main(String[] arguments) {
A a;
a = new B();
}
}
class A {
}
class B {
}
class Main {
public static void main(String[] arguments) {
if (new A() == new B()) {
}
}
}
class A {
}
class B {
}
class Main {
public static void main(String[] arguments) {
}
public void foo() {
bar(new B());
}
public void bar(A a) {
}
}
class A {
}
class B {
}
class Main {
public static void main(String[] arguments) {
new Main().test(new B());
}
public void test(A a) {
}
}
class A {
}
class B {
}
class Main {
public static void main(String[] arguments) {
A[] a = new B[2];
}
}
class A {
}
class B {
}
class Main {
public static void main(String[] arguments) {
A a = new B();
}
}
class A {
}
class B {
}
class Main {
public static void main(String[] arguments) {
A a = new A();
a.foo(new B());
}
}
class A {
public void foo(A a) {
}
}
class B {
}
class Main {
public static void main(String[] arguments) {
A a = new A();
a.foo();
}
}
class A {
public void foo() {
bar (new B());
}
public void bar(A a) {
}
}
class B {
}
class Main {
public static void main(String[] arguments) {
A a = new A();
A a2 = a.foo();
}
}
class A {
public A foo() {
return new B();
}
}
class B {
}
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