[rx] add missing project file generator helper files.
[mono-project.git] / mono / tests / main-returns.cs
blob653daf5a107ea80901e854ff51be39bc1ef32dd7
2 using System;
3 using System.Threading;
5 public class foo {
6 public static void Main() {
7 // it will actually return 0 only if the thread finishes executing
8 Environment.ExitCode = 1;
9 Thread thr=new Thread(new ThreadStart(foo.thread));
10 thr.Start();
11 Thread.Sleep(1200);
12 Console.WriteLine("Main thread returns");
15 public static void thread() {
16 Console.WriteLine("Thread running");
17 Thread.Sleep(500);
18 Console.WriteLine("Thread running");
19 Thread.Sleep(500);
20 Console.WriteLine("Thread running");
21 Thread.Sleep(500);
22 Console.WriteLine("Thread running");
23 Thread.Sleep(500);
24 Console.WriteLine("Thread running");
25 Environment.ExitCode = 0;