Mercurial > projects > dstress
annotate run/t/template_45_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 | 5d739c1b003f |
children |
rev | line source |
---|---|
1219
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
2 // $Date$ |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
3 // $Author$ |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
4 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
5 // @author@ Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
6 // @date@ 2006-10-27 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1219
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=465 |
1219
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 465] New: errors when trying to use static templated methods |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
9 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
10 module dstress.run.t.template_45_C; |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
11 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
12 ifloat status; |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
13 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
14 struct S { |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
15 static void func(T)(T a) { |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
16 status += a; |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
17 } |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
18 } |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
19 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
20 int main() { |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
21 status = 1.0Fi; |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
22 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
23 S.func(2.0Fi); |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
24 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
25 if(status != 3.0Fi){ |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
26 assert(0); |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
27 } |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
28 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
29 return 0; |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
30 } |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
31 |
5d739c1b003f
[Issue 465] New: errors when trying to use static templated methods
thomask
parents:
diff
changeset
|
32 |