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:
authorMarek Safar <marek.safar@gmail.com>2006-04-08 13:16:57 +0400
committerMarek Safar <marek.safar@gmail.com>2006-04-08 13:16:57 +0400
commit00d938f4596a2df90b45b3f0121da3ba83028f66 (patch)
tree154c96d2cd0ca12419aa5b2aee0554f7d46ab2ee /mcs/tests/test-408.cs
parent4147693ec1284f089472b8251037fe2d3c2697ca (diff)
Better test case.
svn path=/trunk/mcs/; revision=59245
Diffstat (limited to 'mcs/tests/test-408.cs')
-rw-r--r--mcs/tests/test-408.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mcs/tests/test-408.cs b/mcs/tests/test-408.cs
index 51ff6b0394d..141e994a634 100644
--- a/mcs/tests/test-408.cs
+++ b/mcs/tests/test-408.cs
@@ -4,6 +4,11 @@ unsafe class T {
static int Main () {
int len = 10;
int* x = stackalloc int [len];
- return x [0];
+ for (int i = 0; i < len; i++)
+ {
+ if (x [i] != 0)
+ return i + 1;
+ }
+ return 0;
}
}