diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-09-09 16:54:32 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-09-09 17:01:00 +0400 |
commit | 1384869c80096767df8693acb067bac71ea6f6a8 (patch) | |
tree | 58e0b1f3b6f42083213f4251933612f224ba97a2 /mcs/tests/test-467.cs | |
parent | 8b8025e1d85fa6162a51f95c611628bb2b03e855 (diff) |
The first push to make flow-analysis work for complex blocks.
All blocks are now strictly hierachical which greatly simplifies many
things and fixes many subtle bugs with local names. Removing the block
cross references helps scalling when compiling deeply nested blocks or
large method bodies including linq. Prepared possible dynamic statements
to work with variable declarators.
Diffstat (limited to 'mcs/tests/test-467.cs')
-rw-r--r-- | mcs/tests/test-467.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/mcs/tests/test-467.cs b/mcs/tests/test-467.cs deleted file mode 100644 index 4079595e82b..00000000000 --- a/mcs/tests/test-467.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; - -public class ExceptionWithAnonMethod -{ - public delegate void EmptyCallback(); - static string res; - - public static int Main() - { - try { - throw new Exception("e is afraid to enter anonymous land"); - } catch(Exception e) { - AnonHandler(delegate { - Console.WriteLine(e.Message); - res = e.Message; - }); - } - if (res == "e is afraid to enter anonymous land"){ - Console.WriteLine ("Test passed"); - return 0; - } - Console.WriteLine ("Test failed"); - return 1; - } - - public static void AnonHandler(EmptyCallback handler) - { - if(handler != null) { - handler(); - } - } -} |