Mercurial > projects > ldc
annotate tangotests/fail/q.d @ 245:d61ce72c39ab trunk
[svn r262] Fixed debug info for normal function parameters.
Fixed debug info for pointers to basic types.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 12:43:16 +0200 |
parents | 68a7dd38c03c |
children |
rev | line source |
---|---|
134 | 1 class E : Exception |
2 { | |
3 this(char[] msg) | |
4 { | |
5 super(msg); | |
6 } | |
7 | |
8 char[] toString() | |
9 { | |
10 return super.toString(); | |
11 } | |
12 } | |
13 | |
14 extern(C) int printf(char*, ...); | |
15 | |
16 void main() | |
17 { | |
18 auto e = new E("hello world"); | |
19 auto msg = e.toString(); | |
20 printf("message should be: '%.*s'\n", msg.length, msg.ptr); | |
21 throw e; | |
22 } |