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:
authorMiguel de Icaza <miguel@gnome.org>2001-09-20 05:31:54 +0400
committerMiguel de Icaza <miguel@gnome.org>2001-09-20 05:31:54 +0400
commit4d1cc16aa403cfc6e236d20612e3e321a4edaf12 (patch)
tree8d488a3a0de316f1f0a84641b51a121e0f0a83f9 /mcs/tests/test-5.cs
parent5620f4bc74cb03a87bbaa0d51a510f8bd3d7b1fa (diff)
Add more tests
svn path=/trunk/mcs/; revision=892
Diffstat (limited to 'mcs/tests/test-5.cs')
-rwxr-xr-xmcs/tests/test-5.cs28
1 files changed, 6 insertions, 22 deletions
diff --git a/mcs/tests/test-5.cs b/mcs/tests/test-5.cs
index 80c03266455..7b3bdbc7924 100755
--- a/mcs/tests/test-5.cs
+++ b/mcs/tests/test-5.cs
@@ -1,30 +1,14 @@
using System;
-class X {
- bool sbyte_selected;
- bool int_selected;
-
- void test (sbyte s)
- {
- sbyte_selected = true;
- }
- void test (int i)
- {
- int_selected = true;
- }
+class X {
static int Main ()
{
- X y = new X ();
- sbyte s = 10;
+ Console.WriteLine ("From 0 to 9");
+
+ for (int i = 0; i < 10; i++)
+ Console.WriteLine (i);
- y.test (s);
- if (y.sbyte_selected){
- Console.WriteLine ("OK: sbyte selected for sbyte argument");
- } else {
- Console.WriteLine ("FAILED: sbyte not selected for sbyte argument");
- return 1;
- }
return 0;
}
-}
+}