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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [err8.java] - Blame information for rev 767

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

Line No. Rev Author Line
1 765 jeremybenn
/*--------------------------------------------------------------------------*/
2
/* File name  : err8.java                                              */
3
/*            :                                                             */
4
/* Cause      : When "do while" statement has only "break", error.          */
5
/*            :                                                             */
6
/* Message    : err8.java: In class `err8': xxxxxx                */
7
/*            : err8.java: In method `main(java.lang.String[])':       */
8
/*            : err8.java:20: Unreachable statement.                   */
9
/*            :                 } while (true) ;                            */
10
/*            :                         ^                                   */
11
/*            : 1 error                                                     */
12
/*--------------------------------------------------------------------------*/
13
 
14
public class err8 {
15
  public static void main(String[] args) {
16
    do {
17
      break;
18
    } while (true) ;
19
 
20
    System.out.println("OK");
21
  }
22
}
23
 

powered by: WebSVN 2.1.0

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