Mercurial > projects > dstress
comparison run/s/scope_19_C.d @ 1566:b50583aebed4
r8719@birke: tk | 2007-09-30 11:08:05 +0200
[Issue 1518] Crash using 'scope', 'with' and undefined 'RegExp'
<regan@netmail.co.nz>
2007-09-19
http://d.puremagic.com/issues/show_bug.cgi?id=1518
author | thomask |
---|---|
date | Sun, 30 Sep 2007 09:47:53 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1565:6424a05d3113 | 1566:b50583aebed4 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <regan@netmail.co.nz> | |
6 // @date@ 2007-09-19 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1518 | |
8 // @desc@ [Issue 1518] Crash using 'scope', 'with' and undefined 'RegExp' | |
9 | |
10 module dstress.run.s.scope_19_C; | |
11 | |
12 int main(){ | |
13 int i; | |
14 { | |
15 scope(success) i++; | |
16 with(new Object()){ | |
17 } | |
18 } | |
19 if(1 != i){ | |
20 assert(0); | |
21 } | |
22 return 0; | |
23 } |