Commit 22dfaf92 authored by Tobias Knorr's avatar Tobias Knorr
Browse files

added syntax tests for merge-request

parent b59ecc10
Pipeline #174574 failed with stage
in 5 minutes and 43 seconds
class Add {
public int add(int a, int b) {
return a + b;
}
}
\ No newline at end of file
class PrivateMember {
int[][][] test;
public int foo() {
{}{}{{}}
}
}
\ No newline at end of file
package de.dercompiler;
import de.dercompiler.actions.Action;
import de.dercompiler.general.CompilerSetup;
import de.dercompiler.io.CommandLineBuilder;
import de.dercompiler.io.CommandLineOptions;
public class DerCompiler {
public static void main(String[] args){
CommandLineBuilder clb = new CommandLineBuilder();
clb.parseArguments(args);
CommandLineOptions options = clb.parseArguments(args);
CompilerSetup.setupGlobalValues(options);
Action action = new CompilerSetup().parseAction(options);
boolean showHelp = options.help();
options.finish();
if (showHelp) {
action.help();
} else {
action.run();
}
System.exit(0);
}
}
\ No newline at end of file
class FooTester2 {
public boolean isFoo(String maybeFoo; String definitelyFoo) {
return maybeFoo _ definitelyFoo;
}
}
\ No newline at end of file
class FooTester {
public void foo() {}
public boolean isFoo(String maybeFoo, String definitelyFoo) {
return maybeFoo == definitelyFoo;
}
}
\ No newline at end of file
class PrivateMember {
public int test;
public static void foo() {
}
public String test;
}
class irgendwas{
public static int fib(Integer i){
return fib(1);
return fib(test);
return;
}
}
\ No newline at end of file
class PrivateMember {
private int foo() {
return 0;
}
}
\ No newline at end of file
class ReturnWhile {
public void returnWhile() {
return while(true);
}
}
\ No newline at end of file
class UseFor {
public int[] foo;
public void useFor() {
foo = new int[10];
for (int i = 0; i < 10; i++) {
foo[i] = 0;
}
}
}
\ No newline at end of file
class PrivateMember {
int test[];
private int foo() {
return 0;
}
}
\ No newline at end of file
Supports Markdown
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