Mercurial > projects > ldc
view tangotests/fail/q.d @ 321:571959608194 trunk
[svn r342] Fix DMD bug 2206.
Implement mixin declarations in LLVMDC.
author | ChristianK |
---|---|
date | Wed, 09 Jul 2008 17:01:08 +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; }