Mercurial > projects > ldc
view tangotests/fail/q.d @ 268:23d0d9855cad trunk
[svn r289] Fixed: right shift >> was broken for unsigned types.
Fixed: debug info for classes now started.
author | lindquist |
---|---|
date | Sun, 15 Jun 2008 18:52:27 +0200 |
parents | 68a7dd38c03c |
children |
line wrap: on
line source
class E : Exception { this(char[] msg) { super(msg); } char[] toString() { return super.toString(); } } extern(C) int printf(char*, ...); void main() { auto e = new E("hello world"); auto msg = e.toString(); printf("message should be: '%.*s'\n", msg.length, msg.ptr); throw e; }