annotate run/s/scope_19_D.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1566
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
1 // $HeadURL$
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
2 // $Date$
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
3 // $Author$
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
4
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
5 // @author@ <regan@netmail.co.nz>
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
6 // @date@ 2007-09-19
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1518
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
8 // @desc@ [Issue 1518] Crash using 'scope', 'with' and undefined 'RegExp'
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
9
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
10 module dstress.run.s.scope_19_D;
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
11
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
12 int main(){
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
13 int i;
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
14 try{
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
15 scope(failure) i++;
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
16 with(new Object()){
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
17 throw new Exception("");
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
18 }
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
19 }catch{
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
20 if(1 != i){
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
21 assert(0);
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
22 }
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
23 }
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
24 return 0;
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
25 }