annotate run/i/is_13_A.d @ 1440:5224177dd804

r7388@birke: tk | 2007-03-29 15:55:00 +0200 is -> static is
author thomask
date Sat, 31 Mar 2007 08:25:50 +0000
parents 9dcac8d4e97f
children b8c0195059d9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
914
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
1 // $HeadURL$
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
2 // $Date$
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
3 // $Author$
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
4
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
5 // @author@ Sean Kelly <sean@f4.ca>
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
6 // @date@ 2006-03-15
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
7 // @uri@ news:dv9okf$mfp$1@digitaldaemon.com
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
8
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
9 module dstress.run.i.is_13_A;
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
10
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
11 class C{
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
12 int dummy;
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
13
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
14 int test(int i){
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
15 return i * dummy;
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
16 }
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
17 }
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
18
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
19 int main(){
1440
5224177dd804 r7388@birke: tk | 2007-03-29 15:55:00 +0200
thomask
parents: 1091
diff changeset
20 static if(!is(C.test == delegate)){
5224177dd804 r7388@birke: tk | 2007-03-29 15:55:00 +0200
thomask
parents: 1091
diff changeset
21 static assert(0);
914
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
22 }
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
23
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
24 return 0;
7e37cc332431 Sean Kelly <sean@f4.ca>
thomask
parents:
diff changeset
25 }