140
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
111
|
5 // @author@ Charlie <Charlie_member@pathlink.com>
|
|
6 // @date@ 2004-07-17
|
140
|
7 // @uri@ news:casnln$1oe1$1@digitaldaemon.com
|
1487
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=551
|
111
|
9
|
|
10 module dstress.run.nested_function_01;
|
|
11
|
|
12 void fn( out char[] buf ){
|
|
13 void fn2(){
|
|
14 assert(buf.length==0);
|
1386
|
15 assert(buf.sizeof== 2 * size_t.sizeof);
|
111
|
16 }
|
|
17 fn2();
|
|
18 assert(buf.length==0);
|
1386
|
19 assert(buf.sizeof== 2 * size_t.sizeof);
|
111
|
20 }
|
|
21
|
|
22 int main(){
|
|
23 char[] buf;
|
|
24 assert(buf.length==0);
|
1386
|
25 assert(buf.sizeof== 2 * size_t.sizeof);
|
111
|
26 fn( buf );
|
|
27 return 0;
|
|
28 }
|