annotate nocompile/s/scope_19_B.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 // __DSTRESS_ELINE__ 18
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 module dstress.nocompile.s.scope_19_B;
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
13
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
14 int main(){
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
15 int i;
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
16 {
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
17 scope(exit) i++;
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
18 with(XXX){
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
19 }
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
20 }
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
21 if(1 != i){
b50583aebed4 r8719@birke: tk | 2007-09-30 11:08:05 +0200
thomask
parents:
diff changeset
22 assert(0);
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 }