summaryrefslogtreecommitdiffstats
path: root/tests/harness/fork/MainWriter.java
blob: a7b3993da6630d4b9974633eedcd1e437c9b4e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class MainWriter {
    public static void main(String[] args) {
        if (args.length > 0) {
            if ("err".equals(args[0])) {
                System.err.println("System.err");
            } else if ("out".equals(args[0])) {
                System.out.println("System.out");
            } else if ("Error".equals(args[0])) {
                throw new Error();
            }
        }
    }
}