Align libgc vcxproj with makefile.
[mono.git] / mono / tests / main-returns.cs
1
2 using System;
3 using System.Threading;
4
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");
13         }
14
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;
26         }
27 }
28