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: 3064c2057dd9d367f495914f5f1d574fb7fc236f (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;
	}
}