* fixed-buffer-exe.cs: Rename from 'fixed-buffer.cs' to follow
authorRaja R Harinath <harinath@hurrynot.org>
Thu, 17 Feb 2005 04:45:46 +0000 (04:45 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Thu, 17 Feb 2005 04:45:46 +0000 (04:45 -0000)
naming conventions.

svn path=/trunk/mcs/; revision=40788

mcs/tests/ChangeLog
mcs/tests/fixed-buffer-exe.cs [new file with mode: 0644]
mcs/tests/fixed-buffer.cs [deleted file]

index fcbea3007ac18194974fada0520ce09036a13a1c..ae0555ecb82a8ba32a1061bad09b7ec5072d54d2 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-17  Raja R Harinath  <rharinath@novell.com>
+
+       * fixed-buffer-exe.cs: Rename from 'fixed-buffer.cs' to follow
+       naming conventions.
+
 2005-02-16  Marek Safar <marek.safar@seznam.cz>
 
        * test-348.cs: New test.
diff --git a/mcs/tests/fixed-buffer-exe.cs b/mcs/tests/fixed-buffer-exe.cs
new file mode 100644 (file)
index 0000000..8cde141
--- /dev/null
@@ -0,0 +1,53 @@
+// Compiler options: -unsafe -r:fixed-buffer-dll.dll
+
+using System;
+
+public unsafe struct TestNew {
+       private fixed char test_1 [128];
+       public fixed bool test2 [4];
+       
+       public fixed int T [2];
+       public fixed bool test20 [4], test21 [40];
+       
+       private int foo, foo2;
+       public void SetTest () {
+               fixed (char* c = test_1) {
+                       *c = 'g';
+               }
+       }
+}
+
+public class C {
+       unsafe static int Test () {
+               TestNew tt = new TestNew ();
+               tt.SetTest ();
+               tt.test2 [2] = false;
+               tt.T [1] = 5544;
+               if (tt.T [1] != 5544)
+                       return 2;
+       
+               ExternalStruct es = new ExternalStruct ();
+               es.double_buffer [1] = 999999.8888;
+               es.double_buffer [0] = es.double_buffer [1];
+
+               // Attributes test
+               if (Attribute.GetCustomAttribute (typeof (TestNew).GetField ("test2"), typeof (System.Runtime.CompilerServices.FixedBufferAttribute)) == null)
+                       return 3;
+
+               
+               if (typeof (TestNew).GetNestedTypes ().Length != 5)
+                       return 5;
+
+               foreach (Type t in typeof (TestNew).GetNestedTypes ()) {
+                       if (Attribute.GetCustomAttribute (t, typeof (System.Runtime.CompilerServices.CompilerGeneratedAttribute)) == null)
+                               return 4;
+               }
+
+               Console.WriteLine ("OK");
+               return 0;
+       }
+    
+       public static int Main () {
+               return Test ();
+       }
+}
diff --git a/mcs/tests/fixed-buffer.cs b/mcs/tests/fixed-buffer.cs
deleted file mode 100644 (file)
index 8cde141..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-// Compiler options: -unsafe -r:fixed-buffer-dll.dll
-
-using System;
-
-public unsafe struct TestNew {
-       private fixed char test_1 [128];
-       public fixed bool test2 [4];
-       
-       public fixed int T [2];
-       public fixed bool test20 [4], test21 [40];
-       
-       private int foo, foo2;
-       public void SetTest () {
-               fixed (char* c = test_1) {
-                       *c = 'g';
-               }
-       }
-}
-
-public class C {
-       unsafe static int Test () {
-               TestNew tt = new TestNew ();
-               tt.SetTest ();
-               tt.test2 [2] = false;
-               tt.T [1] = 5544;
-               if (tt.T [1] != 5544)
-                       return 2;
-       
-               ExternalStruct es = new ExternalStruct ();
-               es.double_buffer [1] = 999999.8888;
-               es.double_buffer [0] = es.double_buffer [1];
-
-               // Attributes test
-               if (Attribute.GetCustomAttribute (typeof (TestNew).GetField ("test2"), typeof (System.Runtime.CompilerServices.FixedBufferAttribute)) == null)
-                       return 3;
-
-               
-               if (typeof (TestNew).GetNestedTypes ().Length != 5)
-                       return 5;
-
-               foreach (Type t in typeof (TestNew).GetNestedTypes ()) {
-                       if (Attribute.GetCustomAttribute (t, typeof (System.Runtime.CompilerServices.CompilerGeneratedAttribute)) == null)
-                               return 4;
-               }
-
-               Console.WriteLine ("OK");
-               return 0;
-       }
-    
-       public static int Main () {
-               return Test ();
-       }
-}