Mercurial > projects > dstress
comparison run/nested_function_04.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | 6e4063f99377 |
children |
comparison
equal
deleted
inserted
replaced
1534:345207906be7 | 1535:20d8ee6523e1 |
---|---|
7 // @uri@ news:casnln$1oe1$1@digitaldaemon.com | 7 // @uri@ news:casnln$1oe1$1@digitaldaemon.com |
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=551 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=551 |
9 | 9 |
10 module dstress.run.nested_function_04; | 10 module dstress.run.nested_function_04; |
11 | 11 |
12 void fn( inout char[] buf ){ | 12 void fn( ref char[] buf ){ |
13 void fn2(){ | 13 void fn2(){ |
14 assert(buf.length==0); | 14 assert(buf.length==0); |
15 assert(buf.sizeof== 2 * size_t.sizeof); | 15 assert(buf.sizeof== 2 * size_t.sizeof); |
16 } | 16 } |
17 fn2(); | 17 fn2(); |