annotate run/t/template_37_B.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents 6c7318abb97c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1073
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
1 // $HeadURL$
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
2 // $Date$
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
3 // $Author$
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
4
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
5 // @author@ <oskar.linde@gmail.com>
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
6 // @date@ 2006-07-06
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1073
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=242
1073
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
8
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
9 module dstress.run.t.template_37_B;
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
10
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
11 template a(){
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
12 template b(){
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
13 int b = 1;
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
14 }
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
15 }
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
16
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
17 int main(){
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
18 int x = a!().b!();
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
19
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
20 if(x != 1){
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
21 assert(0);
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
22 }
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
23
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
24 return 0;
6c7318abb97c <oskar.linde@gmail.com>
thomask
parents:
diff changeset
25 }