annotate run/t/template_39_A.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 606a9d4edc0e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1074
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
1 // $HeadURL$
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
2 // $Date$
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
3 // $Author$
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
4
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
5 // @author@ <h3r3tic@mat.uni.torun.pl>
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
6 // @date@ 2006-06-21
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1074
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=215
1074
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
8
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
9 module dstress.run.t.template_39_A;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
10
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
11 template T() {
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
12 template foo(int i = 0) {
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
13 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
14
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
15 struct S{
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
16 int x = 1;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
17 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
18
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
19 S s;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
20 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
21
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
22 struct Bar {
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
23 mixin T!();
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
24 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
25
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
26 int main(){
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
27 Bar b;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
28
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
29 if(b.s.x != 1){
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
30 assert(0);
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
31 }
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
32
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
33 return 0;
606a9d4edc0e <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
34 }