X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-473.cs;h=274f0c50f2951dc1ed4c63cb056d88f972b895eb;hb=edbc5c2334e10836479d1cc528c68d4ad5b47440;hp=f678b7a820d05394d177f3d95a89d01870384824;hpb=1fabd87b02f8d2e359150ed7a9e92613e60383bc;p=mono.git diff --git a/mcs/tests/test-473.cs b/mcs/tests/test-473.cs index f678b7a820d..274f0c50f29 100644 --- a/mcs/tests/test-473.cs +++ b/mcs/tests/test-473.cs @@ -1,37 +1,37 @@ -using System; +using System; using System.Runtime.InteropServices; [Obsolete ("Use Errno", true)] public enum Error { - EROFS, - ERANGE = TestConst.C, - EANOTHER = ERANGE, + EROFS, + ERANGE = TestConst.C, + EANOTHER = ERANGE, } public enum Error_2 { - [Obsolete ("Use A", true)] - ERANGE, - [Obsolete ("Use B", true)] - EANOTHER = ERANGE, + [Obsolete ("Use A", true)] + ERANGE, + [Obsolete ("Use B", true)] + EANOTHER = ERANGE, } - - -[Obsolete ("Use Native.SignalHandler", true)] -public delegate void SignalHandler (int signal); + + +[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); +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) - { - } + } + + private static void Default (int signal) + { + } public static string GetDescription (Error e) { return null; @@ -44,70 +44,70 @@ public sealed class UnixMarshal2 { 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 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 EnumWrapper (int val) { } } -public struct Value +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 () { }