Commit eac1252a authored by uwdkn's avatar uwdkn
Browse files

Merge branch 'group1-more-semantic-tests' into 'master'

More semantic tests

See merge request IPDSnelting/mjtest-tests!38
parents 474e08ac 4bca131e
class ArrayAccessNotAStatement {
public int[] test;
public static void main(String[] args) {
}
public void foo() {
test[1];
}
}
class Test {
public static void main(String[] args) {
int foo = 0;
int bar = foo[12];
}
}
class Test {
public static void main(String[] args) {
}
public void foo(int a) {
a = 5;
}
}
class BooleanConstantNotAStatement {
public static void main(String[] args) {
true;
}
}
class Test {
public static void main(String[] args) {
Test test = new Test();
if (null == test) {
return;
}
}
}
class Test {
public static void main(String[] args) {
Test test = new Test();
if (test == null) {
return;
}
}
}
class Test {
public static void main(String[] args) {
}
public void test() {
Foo foo = new Foo();
foo.bar(this);
}
}
class Foo {
public void bar(Test test) {
test.test();
}
}
class FieldAccessNotAStatement {
public int test;
public static void main(String[] args) {
test;
}
}
class FieldAccessWithoutThis {
public static void main(String[] args) {
new FieldAccessWithoutThis().test();
}
public int field;
public void test() {
field = 10;
}
}
class Test {
public static void main(String[] args) {
foo();
}
public void foo() {
}
}
class IllegalThisInStaticMethod {
public static void main(String[] args) {
IllegalThisInStaticMethod a = this;
}
}
class IntegerConstantNotAStatement {
public static void main(String[] args) {
1;
}
}
class IntegerTooLarge {
public static void main(String[] args) {
int large = 100000000000;
}
}
class InvalidAssignToMainParameter {
public static void main(String[] test) {
test = new String[5];
}
}
class String {
}
class Test {
public static void main(String[] args) {
if (1234) {
return;
}
}
}
class Test {
public static void main(String[] args) {
while (1234) {
return;
}
}
}
class InvalidNullInteger {
public static void main(String[] args) {
int notNull = null;
}
}
class Test {
public static void main(String[] args) {
Test test = new Test();
if (test) {
return;
}
}
}
class Test {
public static void main(String[] args) {
Test test = new Test();
while (test) {
return;
}
}
}
class Test {
public static void main(String[] args) {
new Test().foo();
}
public void foo() {
this = new Test();
}
}
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