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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
926
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
1 // $HeadURL$
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
2 // $Date$
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
3 // $Author$
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
4
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
5 // @author@ <braddr@puremagic.com>
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
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
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
8
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
9 module dstress.run.t.template_34_C;
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
10
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
11 int main() {
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
12 char[][] result, test;
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
13
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
14 foreach (x; test) {
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
15 if(exists(result, x) == true){
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
16 assert(0);
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
17 }
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
18 }
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
19
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
20 return 0;
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
21 }
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
22
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
23 template exists(T, U) {
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
24 bool exists(T[][] src, U[] test) {
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
25 foreach (x; src) {
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
26 if (x == test) {
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
27 return true;
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
28 }
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
29 }
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
30
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
31 return false;
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
32 }
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
33 }
fe8d9fe23320 <braddr@puremagic.com>
thomask
parents:
diff changeset
34