Commit 9c1f1cf1 authored by tnstrssnr's avatar tnstrssnr Committed by Johannes Bucher

add parser tests

parent c0d0d441
This diff is collapsed.
class A {
public int a;
public void method() {
a = array[4][];
}
}
\ No newline at end of file
class A {
public int field;
public CustomType field;
public boolean field;
public void field;
public int[] field;
public CustomType[] field;
public boolean[] field;
public void[][][][][][] field;
}
\ No newline at end of file
class A {
public int method() {}
public boolean method() {}
public void method() {}
public CustomType method() {}
public int[] method() {}
public boolean[] method() {}
public void[] method() {}
public CustomType[] method() {}
public int[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] method() {}
public boolean[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] method() {}
public void[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] method() {}
public CustomType[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] method() {}
public int[] method(int parameter, int parameter, int parameter, int parameter, int parameter, int parameter) {}
}
\ No newline at end of file
class A {
public int[] method(int parameter, int parameter, int parameter, int parameter, int parameter, int parameter,) {}
}
\ No newline at end of file
class FibonacciRecursive {
public static void main(String[] args) {
int a = 10;
int f = fibonacci(a);
}
public int fibonacci(int n) {
if(n <= 1) {
return n;
} else {
return fibonacci(n - 1) + fibonacci(n - 2);
}
}
}
class 42 {
public static void main() {
int x = 42;
}
}
class X {
public static void main(String[] args) {
int a = 0;
int b = 2;
int c = 5;
int d;
d = ((((a + b) * c) - a) / (c % d + ((b - 1) * c));
}
}
class A {
public type a;
public void method() {
a = new array[5][][][][][][][][][][][][];
}
}
\ No newline at end of file
class A {
public static int main(String[] args) {}
}
\ 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