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:
Diffstat (limited to 'mcs/tests/test-106.cs')
-rw-r--r--mcs/tests/test-106.cs50
1 files changed, 0 insertions, 50 deletions
diff --git a/mcs/tests/test-106.cs b/mcs/tests/test-106.cs
deleted file mode 100644
index 52b5f61d9f1..00000000000
--- a/mcs/tests/test-106.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using System;
-using System.Threading;
-using System.Runtime.InteropServices;
-
-class Test {
- delegate int SimpleDelegate (int a);
-
- static int cb_state = 0;
-
- static int F (int a) {
- Console.WriteLine ("Test.F from delegate: " + a);
- throw new NotImplementedException ();
- }
-
- static void async_callback (IAsyncResult ar)
- {
- Console.WriteLine ("Async Callback " + ar.AsyncState);
- cb_state = 1;
- throw new NotImplementedException ();
- }
-
- static int Main () {
- SimpleDelegate d = new SimpleDelegate (F);
- AsyncCallback ac = new AsyncCallback (async_callback);
- string state1 = "STATE1";
- int res = 0;
-
- IAsyncResult ar1 = d.BeginInvoke (1, ac, state1);
-
- ar1.AsyncWaitHandle.WaitOne ();
-
- try {
- res = d.EndInvoke (ar1);
- } catch (NotImplementedException) {
- res = 1;
- Console.WriteLine ("received exception ... OK");
- }
-
- while (cb_state == 0)
- Thread.Sleep (0);
-
- if (cb_state != 1)
- return 1;
-
- if (res != 1)
- return 2;
-
- return 0;
- }
-}