Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-09-09 16:54:32 +0400
committerMarek Safar <marek.safar@gmail.com>2010-09-09 17:01:00 +0400
commit1384869c80096767df8693acb067bac71ea6f6a8 (patch)
tree58e0b1f3b6f42083213f4251933612f224ba97a2 /mcs/tests/test-496.cs
parent8b8025e1d85fa6162a51f95c611628bb2b03e855 (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-496.cs')
-rw-r--r--mcs/tests/test-496.cs41
1 files changed, 0 insertions, 41 deletions
diff --git a/mcs/tests/test-496.cs b/mcs/tests/test-496.cs
deleted file mode 100644
index 4e3125a7741..00000000000
--- a/mcs/tests/test-496.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System;
-using System.Collections;
-
-public class Test
-{
- public IEnumerator GetEnumerator ()
- {
- yield return "TEST";
- try {
- int.Parse (arg);
- } catch {
- yield break;
- }
- yield return "TEST2";
- }
-
- static void Main ()
- {
- new Test ().Run ();
- }
-
- string arg;
-
- void Run ()
- {
- int i = 0;
- foreach (string s in this)
- i++;
- if (i != 1)
- throw new Exception ();
-
- arg = "1";
- i = 0;
- foreach (string s in this)
- i++;
- if (i != 2)
- throw new Exception ();
- }
-}
-
-