Mercurial > projects > dstress
changeset 1527:72baa306cb03
[Issue 1122] dmd generate bad line number while reporting error message
David <davidl@126.com>
2007-04-10
http://d.puremagic.com/issues/show_bug.cgi?id=1122
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:31:30 +0000 |
parents | 6caf8b7e726a |
children | 36d8e64392df |
files | nocompile/e/ExpressionStatement_11_A.d |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/ExpressionStatement_11_A.d Fri Apr 27 17:31:30 2007 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David <davidl@126.com> +// @date@ 2007-04-10 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1122 +// @desc@ [Issue 1122] dmd generate bad line number while reporting error message + +// __DSTRESS_ELINE__ 15 + +module dstress.nocompile.e.ExpressionStatement_11_A; + +void getkey(char[] key){ + *(key.ptr[1]=key.length; +} + +void main(){ + getkey("asdf"); +}