From ab78d4ae5e32631843e417f4d6392eecdba10170 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Mon, 4 Aug 2008 11:52:26 +0000 Subject: [PATCH] New test. svn path=/trunk/mcs/; revision=109550 --- mcs/tests/test-anon-84.cs | 25 +++++++++++++++++++++++++ mcs/tests/ver-il-gmcs.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100755 mcs/tests/test-anon-84.cs diff --git a/mcs/tests/test-anon-84.cs b/mcs/tests/test-anon-84.cs new file mode 100755 index 00000000000..666700272e1 --- /dev/null +++ b/mcs/tests/test-anon-84.cs @@ -0,0 +1,25 @@ +using System; + +public delegate C D (int i); + +public class C +{ + private readonly D field = delegate { + int x = 0; + return null; + }; + + public C () + { + } + + public C (D onMissing) + { + } + + public static int Main () + { + new C ().field (3); + return 0; + } +} diff --git a/mcs/tests/ver-il-gmcs.xml b/mcs/tests/ver-il-gmcs.xml index 2ea92f8ff58..f156fee0837 100644 --- a/mcs/tests/ver-il-gmcs.xml +++ b/mcs/tests/ver-il-gmcs.xml @@ -35993,6 +35993,36 @@ + + + + 42 + + + 42 + + + 19 + + + 4 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + -- 2.25.1