2015-01-14 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libjava / testsuite / libjava.lang / pr21785.java
blob7869754977aa4ee30d134f0ba1a677a08a288c37
1 import java.io.*;
3 public class pr21785 implements Serializable
5 public static void main(String[] args)
7 try {
8 ByteArrayOutputStream outb = new ByteArrayOutputStream();
9 ObjectOutputStream outs = new ObjectOutputStream(outb);
10 outs.writeObject(new pr21785());
11 byte[] store = outb.toByteArray();
13 ByteArrayInputStream inb = new ByteArrayInputStream(store);
14 ObjectInputStream ins = new ObjectInputStream(inb);
15 ins.readObject();
17 catch (Throwable e) {
18 throw new Error(e);