Mercurial > projects > dstress
annotate run/s/scope_14_A.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 | e293e1b6aaaa |
children |
rev | line source |
---|---|
1067 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <thomas-dloop@kuehne.cn> | |
6 // @date@ 2006-07-02 | |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1067
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=235 |
1067 | 8 |
9 module dstress.run.s.scope_14_A; | |
10 | |
11 int status; | |
12 | |
13 void foo(bool b){ | |
14 if(b){ | |
15 goto label; | |
16 } | |
17 | |
18 status = 2; | |
19 scope(exit){ | |
20 status--; | |
21 } | |
22 | |
23 label: | |
24 { | |
25 } | |
26 } | |
27 | |
28 int main(char[][] args){ | |
29 foo(args.length > 1000); | |
30 | |
31 if(status != 1){ | |
32 assert(0); | |
33 } | |
34 | |
35 return 0; | |
36 } | |
37 |