OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [EvaluationOrder.java] - Rev 830

Go to most recent revision | Compare with Previous | Blame | View Log

public class EvaluationOrder
 {
     private static int first (int x, int y)
     {
         return x;
     }
 
     public static void main (String[] args)
     {
         int l = args.length;
 
         /* This should print:
 0
 0
 1
         */
         System.out.println (l);
         System.out.println (first (l, ++l));
         System.out.println (l);
     }
 }
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.