# HG changeset patch # User Christian Kamm # Date 1238264278 -3600 # Node ID cc724d521a34fb3a490f48230e177bf683ed40dc # Parent 2031b04871b375ad0b4be7df0259dddb7e0f07a1 Add note about possible issues with test case depending on switch scopes. diff -r 2031b04871b3 -r cc724d521a34 run/s/switch_22_C.d --- a/run/s/switch_22_C.d Sat Mar 28 19:17:32 2009 +0100 +++ b/run/s/switch_22_C.d Sat Mar 28 19:17:58 2009 +0100 @@ -9,6 +9,19 @@ module dstress.run.s.switch_22_C; +/+ + The validity of this test case is dubious: + the spec is not explicit about scopes in a switch statement + and DMD transforms the scope(success) into: + + switch(3){ + bool success = true; + try { default: } + catch(Object e) { success = false; throw e; } + finally { if(success) i--; } + } ++/ + int main(){ int i = 2;