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
path: root/mcs
diff options
context:
space:
mode:
authorBen Maurer <benm@mono-cvs.ximian.com>2004-06-18 00:50:27 +0400
committerBen Maurer <benm@mono-cvs.ximian.com>2004-06-18 00:50:27 +0400
commit765b9b1d2f41994d70e03f630c3a452c3b285ece (patch)
tree2213ac0a7f59480e10cc196d12f7c82699a56ffb /mcs
parentc817f917dc2f57e30ce9056655b3260dbaceb58c (diff)
new test
svn path=/trunk/mcs/; revision=29813
Diffstat (limited to 'mcs')
-rw-r--r--mcs/tests/Makefile1
-rw-r--r--mcs/tests/test-271.cs22
2 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/Makefile b/mcs/tests/Makefile
index ff737b55217..15232d0163b 100644
--- a/mcs/tests/Makefile
+++ b/mcs/tests/Makefile
@@ -43,6 +43,7 @@ TEST_SOURCES = \
test-241 test-242 test-243 test-244 test-245 test-246 test-247 test-248 test-249 test-250 \
test-251 test-252 test-253 test-254 test-255 test-256 test-257 test-258 test-259 test-260 \
test-261 test-262 test-263 test-264 test-265 test-266 test-267 test-268 test-269 test-270 \
+ test-271 \
cls-test-0 cls-test-1 cls-test-2 cls-test-3 cls-test-5 cls-test-6 cls-test-7 cls-test-10 \
cls-test-11 cls-test-14 cls-test-15 cls-test-16
diff --git a/mcs/tests/test-271.cs b/mcs/tests/test-271.cs
new file mode 100644
index 00000000000..0ace0dc57f0
--- /dev/null
+++ b/mcs/tests/test-271.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections;
+
+class T {
+ struct C : IEnumerable {
+ public IEnumerator GetEnumerator ()
+ {
+ return new ArrayList ().GetEnumerator ();
+ }
+ }
+
+ static C X ()
+ {
+ return new C ();
+ }
+
+ static void Main ()
+ {
+ foreach (object o in X ())
+ ;
+ }
+} \ No newline at end of file