New test + update.
authorMarek Safar <marek.safar@gmail.com>
Fri, 7 Mar 2008 11:29:01 +0000 (11:29 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 7 Mar 2008 11:29:01 +0000 (11:29 -0000)
svn path=/trunk/mcs/; revision=97678

mcs/tests/gtest-374.cs [new file with mode: 0644]
mcs/tests/test-574.cs [deleted file]
mcs/tests/test-616.cs [new file with mode: 0644]

diff --git a/mcs/tests/gtest-374.cs b/mcs/tests/gtest-374.cs
new file mode 100644 (file)
index 0000000..e024317
--- /dev/null
@@ -0,0 +1,15 @@
+// Compiler options: -unsafe
+
+public class aClass
+{
+       public unsafe struct foo_t
+       {
+               public fixed char b[16];
+       }
+       
+       public static unsafe void Main(string[] args)
+       {
+               foo_t bar;
+               char* oo = bar.b;
+       }
+}
diff --git a/mcs/tests/test-574.cs b/mcs/tests/test-574.cs
deleted file mode 100644 (file)
index e024317..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// Compiler options: -unsafe
-
-public class aClass
-{
-       public unsafe struct foo_t
-       {
-               public fixed char b[16];
-       }
-       
-       public static unsafe void Main(string[] args)
-       {
-               foo_t bar;
-               char* oo = bar.b;
-       }
-}
diff --git a/mcs/tests/test-616.cs b/mcs/tests/test-616.cs
new file mode 100644 (file)
index 0000000..b48aa7f
--- /dev/null
@@ -0,0 +1,71 @@
+// Compiler options: -nostdlib
+
+//
+// Tests compiler mscorlib bootstrap
+//
+
+namespace System
+{
+       public class Object {}
+               
+       public struct Byte {}
+       public struct Int16 {}
+       public struct Int32 {}
+       public struct Int64 {}
+       public struct Single {}
+       public struct Double{}
+       public struct Char {}
+       public struct Boolean {}
+       public struct SByte {}
+       public struct UInt16 {}
+       public struct UInt32 {}
+       public struct UInt64 {}
+       public struct IntPtr {}
+       public struct UIntPtr {}
+       public struct Decimal { }
+       public class String { }
+       public class Delegate {}
+       public class MulticastDelegate {}
+       public class Array {}
+       public class Exception {}
+       public class Type {}
+       public class ValueType {}
+       public class Enum {}
+       public class Attribute {}
+       public struct Void {}
+       public class ParamArrayAttribute {}
+       public class DefaultMemberAttribute {}
+       public struct RuntimeTypeHandle {}
+       public struct RuntimeFieldHandle {}
+               
+       public interface IDisposable {}
+}
+       
+namespace System.Runtime.InteropServices
+{
+       public class OutAttribute {}
+}
+               
+
+namespace System.Collections
+{
+       public interface IEnumerable {}
+       public interface IEnumerator {}
+}
+
+namespace System.Reflection
+{
+       public class DefaultMemberAttribute {}
+}
+
+class C
+{
+       delegate void Foo ();
+       
+       public static int Main ()
+       {
+               int i = 0;
+               
+               return i;
+       }
+}
\ No newline at end of file