Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2002-03-13 20:36:11 +0300
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2002-03-13 20:36:11 +0300
commit15f7dffd385aee50ee1ea7f704e4a5ebd5be3c6b (patch)
treeea630dc52ba53070382958f4f5afd7ba52663ce8 /mcs/tests/test-86.cs
parentbc1bba5399ab20ad0c5e371a0d7a855a51345518 (diff)
Update test-86 some more
svn path=/trunk/mcs/; revision=3088
Diffstat (limited to 'mcs/tests/test-86.cs')
-rw-r--r--mcs/tests/test-86.cs23
1 files changed, 20 insertions, 3 deletions
diff --git a/mcs/tests/test-86.cs b/mcs/tests/test-86.cs
index ba25bd54340..faf1ae20a18 100644
--- a/mcs/tests/test-86.cs
+++ b/mcs/tests/test-86.cs
@@ -14,15 +14,32 @@ namespace T {
Console.WriteLine ("Wrong method called !");
return 2;
}
+
+ static int method2 (Type t, int val)
+ {
+ Console.WriteLine ("MEthod2 : " + val);
+ return 3;
+ }
+
+ static int method2 (Type t, Type [] types)
+ {
+ Console.WriteLine ("Correct one this time!");
+ return 4;
+ }
public static int Main()
{
int i = method1 (null, 1);
- if (i == 1)
- return 0;
- else
+ if (i != 1)
+ return 1;
+
+ i = method2 (null, null);
+
+ if (i != 4)
return 1;
+
+ return 0;
}
}
}