Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

38
mcs/tests/test-68.cs Normal file
View File

@@ -0,0 +1,38 @@
//
// Tests invocation of reference type functions with value type arguments
//
using System;
enum A {
Hello
}
class Y {
public Y ()
{
value = 3;
}
public int value;
}
class X {
public static int Main ()
{
if ("Hello" != A.Hello.ToString ())
return 1;
Console.WriteLine ("value is: " + (5.ToString ()));
if (5.ToString () != "5")
return 2;
Y y = new Y ();
if (y.value.ToString () != "3"){
string x = y.value.ToString ();
Console.WriteLine ("Got: {0} expected 3", x);
return 3;
}
Console.WriteLine ("Test ok");
return 0;
}
}