(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / tests / test-77.cs
blob8f3119b2a88379c433b525ab876e5e93db26ed42
1 //
2 // Tests the various string implicit conversions
3 //
5 class XX {
7 enum X {
8 A = 1
11 static int Main ()
13 int one = 1;
14 int two = 2;
16 if (("a" + "b") != "ab")
17 return 1;
19 if (("one" + one) != "one1")
20 return 2;
22 if ((one + "one") != "1one")
23 return 3;
25 if ((one + "two" + two) != "1two2")
26 return 4;
28 if ((X.A + "a") != "Aa")
29 return 5;
31 if (((int)X.A) + "a" != "1a")
32 return 6;
34 if ((1 + " " + "hello") != "1 hello")
35 return 7;
37 System.Console.WriteLine ("test ok");
38 return 0;