gcc/libjava/testsuite/libjava.lang/utf8concat.java

12 lines
245 B
Java
Raw Normal View History

2002-09-30 07:19:09 +02:00
public class utf8concat
{
private static String s;
public static void main (String[] args)
{
// This causes a crash at runtime because the compiler is
// producing an invalid UTF-8 string literal.
s = "abc" + (char)183;
}
}