annotate run/m/mixin_23_C.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 9dcac8d4e97f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1076
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
1 // $HeadURL$
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
2 // $Date$
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
3 // $Author$
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
4
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
5 // @author@ <h3r3tic@mat.uni.torun.pl>
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
6 // @date@ 2006-06-19
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1091
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=211
1076
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
8
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
9 module dstress.run.m.mixin_23_C;
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
10
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
11 int status;
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
12
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
13 template T(alias a) {
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
14 int dummy;
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
15 }
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
16
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
17 class C{
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 1076
diff changeset
18 mixin T!(
1076
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
19 function(){
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
20 status++;
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
21 }
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
22 ) mixed;
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
23 }
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
24
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
25
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
26 int main(){
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
27 C c = new C();
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
28
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
29 c.mixed.a();
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
30
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
31 if(status != 1){
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
32 assert(0);
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
33 }
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
34
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
35 return 0;
a371b0916f36 <h3r3tic@mat.uni.torun.pl>
thomask
parents:
diff changeset
36 }