Merge pull request #4419 from BrzVlad/fix-oom-nre
[mono.git] / mcs / tests / test-884.cs
1 // Compiler options: -optimize
2
3 using System;
4
5 class C
6 {
7         static void Main ()
8         {
9                 AddEH<string> ();
10         }
11
12         static void AddEH<T>()
13         {
14                 var e = new E<T> ();
15                 e.EEvent += EHandler;
16         }
17
18         static void EHandler ()
19         {
20         }
21
22         class E<T>
23         {
24                 public delegate void EMethod ();
25                 public event EMethod EEvent;
26         }
27 }