2 using System
.Runtime
.InteropServices
;
5 delegate void SimpleDelegate ();
7 public static int v
= 0;
11 Console
.WriteLine ("Test.F1");
15 Console
.WriteLine ("Test.F2");
19 Console
.WriteLine ("Test.F3");
22 public static int Main () {
23 return TestDriver
.RunTests (typeof (Tests
));
26 static public int test_0_test () {
28 SimpleDelegate d1
= new SimpleDelegate (F1
);
29 SimpleDelegate d2
= new SimpleDelegate (F2
);
30 SimpleDelegate d3
= new SimpleDelegate (F3
);
32 SimpleDelegate d12
= d1
+ d2
;
33 SimpleDelegate d13
= d1
+ d3
;
34 SimpleDelegate d23
= d2
+ d3
;
35 SimpleDelegate d123
= d1
+ d2
+ d3
;
59 // Regression test for bug #50366
60 static public int test_0_delegate_equality () {
61 if (new SimpleDelegate (F1
) == new SimpleDelegate (F1
))