Commit 671e9ff9 authored by uwgwb's avatar uwgwb

Add parser testcases

parent 029ac0e9
class Arrays {
public package[] foo;
}
\ No newline at end of file
class A {
void nullAssigner() {
null = this;
null = 3;
null = abc;
}
}
\ No newline at end of file
class Foo {
/* Array definition vs access */
public void bar() {
abc[1];
abc[] def;
}
}
\ No newline at end of file
class Return {
public void foo0(int x, int y) { return; }
public void foo1(int x, int y) { return x + y; }
public void foo1(int x, int y) { return (x = 3); }
}
\ No newline at end of file
interface Foo {}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
class A {
public int b()() {}
}
\ No newline at end of file
class TopSecret {
public int solution = 0;
int actualSolution() {
return 42;
}
}
\ No newline at end of file
class A {
void int a() {}
}
\ No newline at end of file
class A {
public int b() {};
}
\ No newline at end of file
class NestedLoop {
public void foo() {
int i = 0;
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
while(x != y) {
}
}
}
}
}
}
}
}
}
}
}
}
}
}
class A {
void foo() throws package {}
}
\ No newline at end of file
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