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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/*--------------------------------------------------------------------------*/
/* File name  : err8.java                                              */
/*            :                                                             */
/* Cause      : When "do while" statement has only "break", error.          */
/*            :                                                             */
/* Message    : err8.java: In class `err8': xxxxxx                */
/*            : err8.java: In method `main(java.lang.String[])':       */
/*            : err8.java:20: Unreachable statement.                   */
/*            :                 } while (true) ;                            */
/*            :                         ^                                   */
/*            : 1 error                                                     */
/*--------------------------------------------------------------------------*/
 
public class err8 {
  public static void main(String[] args) {
    do {
      break;
    } while (true) ;
 
    System.out.println("OK");
  }
}
 
 

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.