Mercurial > projects > ldc
view tangotests/fail/q.d @ 237:a168a2c3ea48 trunk
[svn r253] Removed -inlineasm option. inline asm is now enabled by default unless the new -noasm option is passed.
Tried adding a stack trace print when compiler crashes, not sure it's working though.
Changed data layouts to match that of llvm-gcc.
Fixed casting function pointers.
Added support checks in AsmStatement.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 19:09:24 +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; }