Fix definitive assignment for imported structs. Fixes #629547
[mono.git] / mcs / tests / test-715.cs
index b41f4affb8b556fe1ef01b817f2f2bcc692f0340..0a0fd29ee1e69fe3ee5a07e2cc407089d6cac07e 100644 (file)
@@ -1,36 +1,10 @@
-using System;
-using System.Reflection;
+// Compiler options: -addmodule:test-715-lib.netmodule
 
-[assembly: AssemblyKeyFileAttribute ("test-715.snk")]
-[assembly: AssemblyFlags (AssemblyNameFlags.EnableJITcompileOptimizer | AssemblyNameFlags.Retargetable)]
-
-class MyClass
+class C
 {
        public static int Main ()
        {
-               Assembly thisAsm = Assembly.GetExecutingAssembly ();
-               AssemblyName name = thisAsm.GetName (false);
-
-               if (name.Flags != (AssemblyNameFlags.EnableJITcompileOptimizer | AssemblyNameFlags.Retargetable | AssemblyNameFlags.PublicKey))
-                       return 1;
-
-               byte[] key = name.GetPublicKey ();
-               if (key.Length != 160)
-                       return 2;
-
-               if (key [56] != 170)
-                       return 3;
-
-               if (name.HashAlgorithm != System.Configuration.Assemblies.AssemblyHashAlgorithm.SHA1)
-                       return 4;
-
-//             if (name.ProcessorArchitecture != ProcessorArchitecture.MSIL)
-//                     return 5;
-
-               if (name.VersionCompatibility != System.Configuration.Assemblies.AssemblyVersionCompatibility.SameMachine)
-                       return 6;
-               
-               Console.WriteLine ("OK");
+               // TODO: check applied attributes
                return 0;
        }
 }