Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-465.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f05da6a26cf1d08924629440b4a60074f1e3d176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Compiler options: -res:test-465.cs

using System.Reflection;
using System;

class C {		
	public static int Main () 
	{
		string [] s = typeof (C).Assembly.GetManifestResourceNames ();
		if (s [0] != "test-465.cs")
			return 1;
		
		if (typeof (C).Assembly.GetManifestResourceStream ("test-465.cs") == null)
			return 2;

		Console.WriteLine ("OK");
		return 0;
	}
}