0 jrc -Xlint ResourceAllocatorA.jr
0 cmp Translator.std Translator.out
0 javac jrGen/*.java

1 jrrun ResourceAllocatorA > No_input.out 2>&1

# details of No_input.out depends on Java implementation (e.g., line #s)
# so just check (some of) what is easy to check
# would like to use entire lines:
#    0 grep "jrvm exception: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;" No_input.out > /dev/null 2>&1
#    0 grep "java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;" No_input.out > /dev/null 2>&1
# however, due to [, those won't work with regular grep (would work with fgrep)
# so just use (weaker) partial matches:
0 grep "jrvm exception: " No_input.out > /dev/null 2>&1
0 grep "Ljava.lang.Object; cannot be cast to" No_input.out > /dev/null 2>&1
0 grep "Ljava.lang.Integer;" No_input.out > /dev/null 2>&1
0 grep "java.lang.ClassCastException: " No_input.out > /dev/null 2>&1
0 grep "at ResourceAllocatorA.main(ResourceAllocatorA.java:" No_input.out > /dev/null 2>&1

0 rm -rf jrGen core *.out *.class
