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

test-473.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 274f0c50f2951dc1ed4c63cb056d88f972b895eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
using System;
using System.Runtime.InteropServices;

[Obsolete ("Use Errno", true)]
public enum Error {
	EROFS,
	ERANGE = TestConst.C,
	EANOTHER = ERANGE,
}

public enum Error_2 {
	[Obsolete ("Use A", true)]
	ERANGE,
	[Obsolete ("Use B", true)]
	EANOTHER = ERANGE,
}


[Obsolete ("Use Native.SignalHandler", true)]
public delegate void SignalHandler (int signal);

[Obsolete ("Use Errno", true)]
public sealed class UnixMarshal {

	public static readonly SignalHandler SIG_DFL = new SignalHandler(Default);

	static UnixMarshal ()
	{
		Stdlib s = new Stdlib ();
	}
	
	private static void Default (int signal)
	{
	}

	public static string GetDescription (Error e) {
		return null;
	}
}

public sealed class UnixMarshal2 {
	[Obsolete ("Use Errno", true)]
	public static string GetDescription (Error e) {
		return null;
	}
}

[Obsolete ("Use Native.Stdlib", true)]
public class Stdlib {
	
	enum E {
		val1 = TestConst.C
	}
	
	internal const string LIBC = "msvcrt.dll";
	[DllImport (LIBC)]
	public static extern IntPtr signal (int signum, IntPtr handler);
}

class TestConst {
	[Obsolete ("B", true)]
	public const int C = 3;
}


[Obsolete ("Use Native.Stdlib", true)]
public class XX {
	private static readonly SignalHandler[] registered_signals;
}

[Obsolete ("Use Native.Pollfd", true)]
public struct Pollfd {
}

[Obsolete ("Use Native.Syscall", true)]
public class Syscall : XX {
	public static int poll (Pollfd [] fds, uint nfds, int timeout) {
		return -1;
	}
}


[Obsolete ("test me", true)]
partial struct PS
{
}

partial struct PS
{
	[Obsolete ("Use Errno", true)]
	public static void GetDescription (Error e) {}
}


[Obsolete ("Replaced by direct enum type casts to/from GLib.Value", true)]
public class EnumWrapper {
	public EnumWrapper (int val)
	{
	}
}	

public struct Value 
{
	[Obsolete ("Replaced by Enum cast", true)]
	public static explicit operator EnumWrapper (Value val)
	{
		return new EnumWrapper (334455);
	}
}

class Test {
	public static void Main () {
	}
}