Skip to content

Commit

Permalink
Add pos-parser/ test cases by group MJIS
Browse files Browse the repository at this point in the history
  • Loading branch information
jspam committed Nov 20, 2014
1 parent 14dd377 commit ecc7391
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pos-parser/access-of-main-args-2.mj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Test {
public static void main(String[] argumentations) {
System.out.println(argumentations);
}
}
5 changes: 5 additions & 0 deletions pos-parser/access-of-main-args.mj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Test {
public static void main(String[] args) {
System.out.println(args);
}
}
6 changes: 6 additions & 0 deletions pos-parser/assignment-to-not-lvalue.mj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Test {
public static void main(String[] args) {
int foo;
foo+3 = foo;
}
}
11 changes: 11 additions & 0 deletions pos-parser/multiple-main-methods.mj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Test {
public static void main(String[] args) {

}
}

class Test2 {
public static void main(String[] args) {

}
}
11 changes: 11 additions & 0 deletions pos-parser/multiple-static-methods.mj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Test {
public static void main(String[] args) {

}
}

class Test2 {
public static void secondary(String[] args) {

}
}
5 changes: 5 additions & 0 deletions pos-parser/no-void-array.mj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Test {
public static void main(String[] args) {
void[] foo = new void[42];
}
}

0 comments on commit ecc7391

Please sign in to comment.