annotate run/v/version_38_B.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents 6fa59f24470f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1118
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
1 // $HeadURL$
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
2 // $Date$
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
3 // $Author$
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
4
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
5 // @author@ Sean Kelly <sean@f4.ca>
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
6 // @date@ 2006-08-23
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1118
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=305
1118
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
8 // @desc@ [Issue 305] New: version and static if blocks introduce new scope for 'scope' statement
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
9
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
10 module dstress.run.v.version_38_B;
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
11
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
12 int status;
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
13
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
14 void foo(){
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
15 version( all ){
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
16 scope(success) status++;
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
17 }
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
18 version( all ){
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
19 scope(exit) status *= 2;
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
20 }
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
21 }
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
22
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
23 int main(){
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
24 status = 1;
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
25 foo();
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
26 if(status != 3){
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
27 assert(0);
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
28 }
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
29
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
30 return 0;
6fa59f24470f [Issue 305] version and static if blocks introduce new scope for 'scope' statement
thomask
parents:
diff changeset
31 }