source: trunk/gcc/libjava/testsuite/libjava.lang/err8.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1/*--------------------------------------------------------------------------*/
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
14public 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
Note: See TracBrowser for help on using the repository browser.