annotate nocompile/default_argument_05.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents 774e02c900da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
139
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
1 // $HeadURL$
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
2 // $Date$
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
3 // $Author$
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
4
564
e77e4444c170 partial metadata fix
thomask
parents: 338
diff changeset
5 // @author@ tetsuya <tetsuya_member@pathlink.com>
139
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
6 // @date@ 2004-11-15
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 139
diff changeset
7 // @uri@ news:cnaidd$2rnr$1@digitaldaemon.com
1485
774e02c900da changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2275
139
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
9
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 140
diff changeset
10 // __DSTRESS_ELINE__ 16
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 140
diff changeset
11
139
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
12 module dstress.nocompile.default_argument_05;
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
13
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
14 template Template(int L){
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
15 int i;
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
16 void test(int b = Template.i) {
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
17 }
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
18 }
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
19
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
20 int main(){
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
21 mixin Template!(10);
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
22 return 0;
9eda85342d8a 1) templated default arguments
thomask
parents:
diff changeset
23 }