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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

// Test case for http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=194522
 
import java.io.*;
import java.nio.charset.Charset;
 
public class RH194522
{
  public static void main(String[] args) throws Exception
  {
    Charset c = Charset.forName("UTF-8");
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos, c));
    pw.println("hi");
    pw.println("bob");
    pw.flush();
    pw.close();
  }
}
 

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.