Mercurial > projects > dstress
annotate run/o/opAndAnd_02_A.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 | eb555fb95efc |
children |
rev | line source |
---|---|
1041 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <clugdbug@yahoo.com.au> | |
6 // @date@ 2006-05-29 | |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1041
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=160 |
1041 | 8 |
9 module dstress.run.o.opAndAnd_02_A; | |
10 | |
11 template fish(){ | |
12 static assert(0); | |
13 bool fish = true; | |
14 } | |
15 | |
16 template dog(char [] bird){ | |
17 static if(bird.length > 99){ | |
18 const int dog = 2; | |
19 }else{ | |
20 const int dog = 3; | |
21 } | |
22 } | |
23 | |
24 const int pig = dog!("a"); | |
25 | |
26 int main(){ | |
27 if(pig != 3){ | |
28 assert(0); | |
29 } | |
30 return 0; | |
31 } |