eol-style
authorMarek Safar <marek.safar@gmail.com>
Sat, 3 Jul 2010 16:01:57 +0000 (16:01 -0000)
committerMarek Safar <marek.safar@gmail.com>
Sat, 3 Jul 2010 16:01:57 +0000 (16:01 -0000)
svn path=/trunk/mcs/; revision=159854

mcs/tests/gtest-455.cs
mcs/tests/gtest-523.cs
mcs/tests/gtest-anon-53.cs
mcs/tests/gtest-linq-12.cs
mcs/tests/test-464.cs
mcs/tests/test-473.cs
mcs/tests/test-498.cs
mcs/tests/test-526.cs
mcs/tests/test-646.cs
mcs/tests/test-697.cs

index 598505ce046932ff8a15b3da1a39d58cbbd9f0aa..2ba10df342890bc3467fb1d819d654c4aee8899a 100644 (file)
@@ -1,21 +1,21 @@
-using System;\r
-\r
-namespace ConsoleApplication1\r
-{\r
-       class Program\r
-       {\r
-               static void Main ()\r
-               {\r
-                       object o = new object ();\r
-                       Inner<object>.Compare (o, o);\r
-               }\r
-       }\r
-\r
-       public class Inner<T> where T : class\r
-       {\r
-               public static void Compare (object obj, T value)\r
-               {\r
-                       if (obj != value) { }\r
-               }\r
-       }\r
-}\r
+using System;
+
+namespace ConsoleApplication1
+{
+       class Program
+       {
+               static void Main ()
+               {
+                       object o = new object ();
+                       Inner<object>.Compare (o, o);
+               }
+       }
+
+       public class Inner<T> where T : class
+       {
+               public static void Compare (object obj, T value)
+               {
+                       if (obj != value) { }
+               }
+       }
+}
index fe53050095d8942997445345512aff78556e2d79..ab91bee5ba99714ccf1b791d01c601d56d830f46 100644 (file)
@@ -93,5 +93,5 @@ namespace Test
                        new TestClass4<string> ();\r
                }\r
        }\r
-}
-
+}\r
+\r
index 0bf6683f3bf2728d77a403b6ec891a4e9a8c5797..4e81921d28b7924cec08549167e90ac177c8dd07 100644 (file)
@@ -1,29 +1,29 @@
-using System;\r
-using System.Collections.Generic;\r
-\r
-namespace TestComp\r
-{\r
-       class Program\r
-       {\r
-               internal class MyClass\r
-               {\r
-                       public delegate void MyDelegate (out List<int> intToAdd);\r
-                       private void MyTemplate (MyDelegate myData)\r
-                       {\r
-                       }\r
-                       public void UseATemplate ()\r
-                       {\r
-                               MyTemplate (\r
-                                       delegate (out List<int> intToAdd) {\r
-                                               intToAdd = new List<int> ();\r
-                                               intToAdd.Add (0);\r
-                                       }\r
-                               );\r
-                       }\r
-               }\r
-\r
-               static void Main (string[] args)\r
-               {\r
-               }\r
-       }\r
-}\r
+using System;
+using System.Collections.Generic;
+
+namespace TestComp
+{
+       class Program
+       {
+               internal class MyClass
+               {
+                       public delegate void MyDelegate (out List<int> intToAdd);
+                       private void MyTemplate (MyDelegate myData)
+                       {
+                       }
+                       public void UseATemplate ()
+                       {
+                               MyTemplate (
+                                       delegate (out List<int> intToAdd) {
+                                               intToAdd = new List<int> ();
+                                               intToAdd.Add (0);
+                                       }
+                               );
+                       }
+               }
+
+               static void Main (string[] args)
+               {
+               }
+       }
+}
index b1afaae6db5e429c9f2e2b4582cdc0817db6c6d1..a4c96ad74b4e7fb6d3d10dc46c43e86ccaa5b599 100644 (file)
@@ -1,51 +1,51 @@
-using System;\r
-using System.Linq;\r
-\r
-class NestedQuery\r
-{\r
-       public void XX ()\r
-       {\r
-               var enumerable = new string[] { "aba", "bbb", "bab", "aaa" }.\r
-                       Select((values) => new { values = values, length = values.Length }).\r
-                               Select((ti0) => ti0.values.Select ((type) => new { type = type, x = 9 }).Where((ti1) => (ti0.length == 3)).\r
-                       Select((ti1) => ti1.type));\r
-       }\r
-       \r
-       public static int Main ()\r
-       {\r
-               var e = from values in new [] { "aba", "bbb", "bab", "aaa" }\r
-                       where values.Length > 0\r
-                       select from type in values\r
-                               where type == 'a'\r
-                               select type;\r
-               \r
-               int counter = 0;\r
-               foreach (var v in e)\r
-                       foreach (var vv in v) {\r
-                               ++counter;\r
-                               Console.WriteLine (vv);\r
-                       }\r
-                       \r
-               \r
-               if (counter != 6)\r
-                       return 1;\r
-                       \r
-               e = from values in new [] { "aba", "bbb", "bab", "aaa" }\r
-                       let length = values.Length\r
-                       select from type in values\r
-                               let x = 9\r
-                               where length == 3\r
-                               select type;\r
-               counter = 0;\r
-               foreach (var v in e)\r
-                       foreach (var vv in v) {\r
-                               ++counter;\r
-                               Console.WriteLine (vv);\r
-                       }\r
-                       \r
-               if (counter != 12)\r
-                       return 2;\r
-                       \r
-               return 0;\r
-       }\r
-}\r
+using System;
+using System.Linq;
+
+class NestedQuery
+{
+       public void XX ()
+       {
+               var enumerable = new string[] { "aba", "bbb", "bab", "aaa" }.
+                       Select((values) => new { values = values, length = values.Length }).
+                               Select((ti0) => ti0.values.Select ((type) => new { type = type, x = 9 }).Where((ti1) => (ti0.length == 3)).
+                       Select((ti1) => ti1.type));
+       }
+       
+       public static int Main ()
+       {
+               var e = from values in new [] { "aba", "bbb", "bab", "aaa" }
+                       where values.Length > 0
+                       select from type in values
+                               where type == 'a'
+                               select type;
+               
+               int counter = 0;
+               foreach (var v in e)
+                       foreach (var vv in v) {
+                               ++counter;
+                               Console.WriteLine (vv);
+                       }
+                       
+               
+               if (counter != 6)
+                       return 1;
+                       
+               e = from values in new [] { "aba", "bbb", "bab", "aaa" }
+                       let length = values.Length
+                       select from type in values
+                               let x = 9
+                               where length == 3
+                               select type;
+               counter = 0;
+               foreach (var v in e)
+                       foreach (var vv in v) {
+                               ++counter;
+                               Console.WriteLine (vv);
+                       }
+                       
+               if (counter != 12)
+                       return 2;
+                       
+               return 0;
+       }
+}
index 7e19f1d58f4099fed671c90c5f79f03dcbdd33b4..1ddeddf50a64d4745594149756774c813ff56d50 100644 (file)
@@ -1,19 +1,19 @@
-// Compiler options: -res:test-464.cs,TEST,private\r
-\r
-using System.Reflection;\r
-using System;\r
-\r
-class C {              \r
-       public static int Main () \r
-       {\r
-               string [] s = typeof (C).Assembly.GetManifestResourceNames ();\r
-               if (s [0] != "TEST")\r
-                       return 1;\r
-               \r
-               if (typeof (C).Assembly.GetManifestResourceStream ("TEST") == null)\r
-                       return 2;\r
-\r
-               Console.WriteLine ("OK");\r
-               return 0;\r
-       }\r
-}\r
+// Compiler options: -res:test-464.cs,TEST,private
+
+using System.Reflection;
+using System;
+
+class C {              
+       public static int Main () 
+       {
+               string [] s = typeof (C).Assembly.GetManifestResourceNames ();
+               if (s [0] != "TEST")
+                       return 1;
+               
+               if (typeof (C).Assembly.GetManifestResourceStream ("TEST") == null)
+                       return 2;
+
+               Console.WriteLine ("OK");
+               return 0;
+       }
+}
index d3b2acaaa65ebe7bacd7669ea9bdc9c9d39b6866..274f0c50f2951dc1ed4c63cb056d88f972b895eb 100644 (file)
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-[Obsolete ("Use Errno", true)]\r
-public enum Error {\r
-       EROFS,\r
-       ERANGE = TestConst.C,\r
-       EANOTHER = ERANGE,\r
-}\r
-\r
-public enum Error_2 {\r
-       [Obsolete ("Use A", true)]\r
-       ERANGE,\r
-       [Obsolete ("Use B", true)]\r
-       EANOTHER = ERANGE,\r
-}\r
-\r
-\r
-[Obsolete ("Use Native.SignalHandler", true)]\r
-public delegate void SignalHandler (int signal);\r
-\r
-[Obsolete ("Use Errno", true)]\r
-public sealed class UnixMarshal {\r
-\r
-       public static readonly SignalHandler SIG_DFL = new SignalHandler(Default);\r
-\r
-       static UnixMarshal ()\r
-       {\r
-               Stdlib s = new Stdlib ();\r
-       }\r
-       \r
-       private static void Default (int signal)\r
-       {\r
-       }\r
-\r
-       public static string GetDescription (Error e) {\r
-               return null;\r
-       }\r
-}\r
-\r
-public sealed class UnixMarshal2 {\r
-       [Obsolete ("Use Errno", true)]\r
-       public static string GetDescription (Error e) {\r
-               return null;\r
-       }\r
-}\r
-\r
-[Obsolete ("Use Native.Stdlib", true)]\r
-public class Stdlib {\r
-       \r
-       enum E {\r
-               val1 = TestConst.C\r
-       }\r
-       \r
-       internal const string LIBC = "msvcrt.dll";\r
-       [DllImport (LIBC)]\r
-       public static extern IntPtr signal (int signum, IntPtr handler);\r
-}\r
-\r
-class TestConst {\r
-       [Obsolete ("B", true)]\r
-       public const int C = 3;\r
-}\r
-\r
-\r
-[Obsolete ("Use Native.Stdlib", true)]\r
-public class XX {\r
-       private static readonly SignalHandler[] registered_signals;\r
-}\r
-\r
-[Obsolete ("Use Native.Pollfd", true)]\r
-public struct Pollfd {\r
-}\r
-\r
-[Obsolete ("Use Native.Syscall", true)]\r
-public class Syscall : XX {\r
-       public static int poll (Pollfd [] fds, uint nfds, int timeout) {\r
-               return -1;\r
-       }\r
-}\r
-\r
-\r
-[Obsolete ("test me", true)]\r
-partial struct PS\r
-{\r
-}\r
-\r
-partial struct PS\r
-{\r
-       [Obsolete ("Use Errno", true)]\r
-       public static void GetDescription (Error e) {}\r
-}\r
-\r
-\r
-[Obsolete ("Replaced by direct enum type casts to/from GLib.Value", true)]\r
-public class EnumWrapper {\r
-       public EnumWrapper (int val)\r
-       {\r
-       }\r
-}      \r
-\r
-public struct Value \r
-{\r
-       [Obsolete ("Replaced by Enum cast", true)]\r
-       public static explicit operator EnumWrapper (Value val)\r
-       {\r
-               return new EnumWrapper (334455);\r
-       }\r
-}\r
-\r
-class Test {\r
-       public static void Main () {\r
-       }\r
-}\r
+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 () {
+       }
+}
index 8eb24fb4ad285d0d4c583a0e79e79bda55936512..3a0a669f50bcb7e85e03b2d3f2f8722a06a25d9b 100644 (file)
@@ -1,29 +1,29 @@
-using System.Reflection;\r
-using System.Runtime.CompilerServices;\r
-\r
-struct A\r
-{\r
-       [MethodImplAttribute(MethodImplOptions.InternalCall)]\r
-       public extern A (float value);\r
-       \r
-       public extern int Foo {\r
-               [MethodImplAttribute(MethodImplOptions.InternalCall)]\r
-               get;\r
-       }\r
-}\r
-\r
-struct C\r
-{\r
-       static int Main ()\r
-       {\r
-               MethodImplAttributes iflags = typeof (A).GetConstructors()[0].GetMethodImplementationFlags ();\r
-               if ((iflags & MethodImplAttributes.InternalCall) == 0)\r
-                       return 1;\r
-\r
-               iflags = typeof (A).GetProperties ()[0].GetGetMethod ().GetMethodImplementationFlags ();\r
-               if ((iflags & MethodImplAttributes.InternalCall) == 0)\r
-                       return 2;\r
-               \r
-               return 0;\r
-       }\r
-}\r
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+struct A
+{
+       [MethodImplAttribute(MethodImplOptions.InternalCall)]
+       public extern A (float value);
+       
+       public extern int Foo {
+               [MethodImplAttribute(MethodImplOptions.InternalCall)]
+               get;
+       }
+}
+
+struct C
+{
+       static int Main ()
+       {
+               MethodImplAttributes iflags = typeof (A).GetConstructors()[0].GetMethodImplementationFlags ();
+               if ((iflags & MethodImplAttributes.InternalCall) == 0)
+                       return 1;
+
+               iflags = typeof (A).GetProperties ()[0].GetGetMethod ().GetMethodImplementationFlags ();
+               if ((iflags & MethodImplAttributes.InternalCall) == 0)
+                       return 2;
+               
+               return 0;
+       }
+}
index dd3f75075216349973283fa96ff8990cba0256e2..81f76806cc1cdafbecbf30da5464dff556e2da02 100644 (file)
@@ -1,76 +1,76 @@
-using System;\r
-\r
-interface IList \r
-{\r
-       int Count ();\r
-}\r
-\r
-interface ICounter \r
-{\r
-       int Count { set; }\r
-}\r
-\r
-interface IListCounter: IList, ICounter\r
-{\r
-}\r
-\r
-interface IA\r
-{\r
-       int Value ();\r
-}\r
-\r
-interface IB : IA\r
-{\r
-       new int Value { get; }\r
-}\r
-\r
-interface IC : IB\r
-{\r
-       new int Value { get; }\r
-}\r
-\r
-interface IBB : IList, ICounter\r
-{\r
-}\r
-\r
-interface ICC : IBB\r
-{\r
-}\r
-\r
-interface IM1\r
-{\r
-    void Add (int arg);\r
-}\r
-\r
-interface IM2 : IM1\r
-{\r
-    int Add (int arg, bool now);\r
-}\r
-\r
-class Test\r
-{\r
-       static void Main ()\r
-       {\r
-       }\r
-       \r
-       static void Foo (IListCounter t)\r
-       {\r
-               t.Count ();\r
-       }\r
-       \r
-       void Foo2 (IC b)\r
-       {\r
-               int i = b.Value;\r
-       }\r
-       \r
-       void Foo3 (ICC c)\r
-       {\r
-               c.Count ();\r
-       }\r
-    \r
-       void Foo4 (IM2 im2)\r
-       {\r
-               im2.Add (2);\r
-       }\r
-\r
+using System;
+
+interface IList 
+{
+       int Count ();
+}
+
+interface ICounter 
+{
+       int Count { set; }
+}
+
+interface IListCounter: IList, ICounter
+{
+}
+
+interface IA
+{
+       int Value ();
+}
+
+interface IB : IA
+{
+       new int Value { get; }
+}
+
+interface IC : IB
+{
+       new int Value { get; }
+}
+
+interface IBB : IList, ICounter
+{
+}
+
+interface ICC : IBB
+{
+}
+
+interface IM1
+{
+    void Add (int arg);
+}
+
+interface IM2 : IM1
+{
+    int Add (int arg, bool now);
+}
+
+class Test
+{
+       static void Main ()
+       {
+       }
+       
+       static void Foo (IListCounter t)
+       {
+               t.Count ();
+       }
+       
+       void Foo2 (IC b)
+       {
+               int i = b.Value;
+       }
+       
+       void Foo3 (ICC c)
+       {
+               c.Count ();
+       }
+    
+       void Foo4 (IM2 im2)
+       {
+               im2.Add (2);
+       }
+
 }
\ No newline at end of file
index 287ba39e715223967c2005854bdb8092a4c1bec1..b86ecee23428cf68175632b5e30ccdbc394130f0 100644 (file)
@@ -1,34 +1,34 @@
-using System;\r
-\r
-// Undocumented IntPtr and UIntPtr conversion exceptions\r
-\r
-class Program\r
-{\r
-       static long CastUIntPtrToInt64 (UIntPtr ptr)\r
-       {\r
-               return (long) ptr;\r
-       }\r
-       \r
-       static uint CastIntPtrToUInt32 (IntPtr ptr)\r
-       {\r
-               return (uint) ptr;\r
-       }\r
-       \r
-       static int Main ()\r
-       {\r
-               if (IntPtr.Size < 8) {\r
-                       if (CastUIntPtrToInt64 (new UIntPtr (uint.MaxValue)) != uint.MaxValue)\r
-                               return 1;\r
-                       if (CastIntPtrToUInt32 (new IntPtr (int.MaxValue)) != int.MaxValue)\r
-                               return 2;\r
-               } else {\r
-                       if (CastUIntPtrToInt64 (new UIntPtr (ulong.MaxValue)) != -1)\r
-                               return 3;\r
-                               \r
-                       if (CastIntPtrToUInt32 (new IntPtr (long.MaxValue)) != uint.MaxValue)\r
-                               return 4;\r
-               }\r
-               \r
-               return 0;\r
-       }\r
-}\r
+using System;
+
+// Undocumented IntPtr and UIntPtr conversion exceptions
+
+class Program
+{
+       static long CastUIntPtrToInt64 (UIntPtr ptr)
+       {
+               return (long) ptr;
+       }
+       
+       static uint CastIntPtrToUInt32 (IntPtr ptr)
+       {
+               return (uint) ptr;
+       }
+       
+       static int Main ()
+       {
+               if (IntPtr.Size < 8) {
+                       if (CastUIntPtrToInt64 (new UIntPtr (uint.MaxValue)) != uint.MaxValue)
+                               return 1;
+                       if (CastIntPtrToUInt32 (new IntPtr (int.MaxValue)) != int.MaxValue)
+                               return 2;
+               } else {
+                       if (CastUIntPtrToInt64 (new UIntPtr (ulong.MaxValue)) != -1)
+                               return 3;
+                               
+                       if (CastIntPtrToUInt32 (new IntPtr (long.MaxValue)) != uint.MaxValue)
+                               return 4;
+               }
+               
+               return 0;
+       }
+}
index c63c6ea658644d398ab9b615ebfeb7776d31f7c5..e29bdba6ff760896cb61298d934a71f585f45038 100644 (file)
@@ -1,12 +1,12 @@
-// Compiler options: -codepage:utf8\r
-\r
-// Tests ignorance of UTF-8 header in the middle of the file\r
-// ->|\r
-using  System\uFEFF;\r
-\r
-public class C\r
-{\r
-       public static void Main ()\r
-       {\r
-       }\r
-}\r
+// Compiler options: -codepage:utf8
+
+// Tests ignorance of UTF-8 header in the middle of the file
+// ->|
+using  System\uFEFF;
+
+public class C
+{
+       public static void Main ()
+       {
+       }
+}