796
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Don Clugston <dac@nospam.com.au>
|
|
6 // @date@ 2006-01-20
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6049
|
796
|
8
|
|
9 module dstress.run.o.opAnd_01_A;
|
|
10
|
|
11 int main(){
|
|
12 const int a = 1;
|
|
13
|
|
14 static if((0 < a) & (a < 10)){
|
|
15 static bool A = true;
|
|
16 }else{
|
|
17 static assert(0);
|
|
18 }
|
|
19
|
|
20 const int b = -1;
|
|
21 static if((0 < b) & (b < 10)){
|
|
22 static assert(0);
|
|
23 }else{
|
|
24 static bool B = true;
|
|
25 }
|
|
26
|
|
27 const int c = 11;
|
|
28 static if((0 < c) & (c < 10)){
|
|
29 static assert(0);
|
|
30 }else{
|
|
31 static bool C = true;
|
|
32 }
|
|
33
|
|
34 if(A && B && C){
|
|
35 return 0;
|
|
36 }
|
|
37 }
|