Mercurial > projects > dstress
annotate run/t/template_34_C.d @ 1319:81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:58:06 +0000 |
parents | fe8d9fe23320 |
children |
rev | line source |
---|---|
926 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <braddr@puremagic.com> | |
6 // @date@ 2006-03-12 | |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
926
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=38 |
926 | 8 |
9 module dstress.run.t.template_34_C; | |
10 | |
11 int main() { | |
12 char[][] result, test; | |
13 | |
14 foreach (x; test) { | |
15 if(exists(result, x) == true){ | |
16 assert(0); | |
17 } | |
18 } | |
19 | |
20 return 0; | |
21 } | |
22 | |
23 template exists(T, U) { | |
24 bool exists(T[][] src, U[] test) { | |
25 foreach (x; src) { | |
26 if (x == test) { | |
27 return true; | |
28 } | |
29 } | |
30 | |
31 return false; | |
32 } | |
33 } | |
34 |