repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #4202 from marek-safar/compression
[mono-project.git]
/
mcs
/
tests
/
test-iter-16.cs
blob
d9be1a74d7157dcbca1420ec78a15f1edf784404
1
using
System
.
Collections
;
2
class
Foo
{
3
static public
IEnumerable
foo
()
4
{
5
try
{ yield break; }
catch
{ }
finally
{ }
6
}
7
public static int
Main
()
8
{
9
int
i
=
0
;
10
foreach
(
object
o
in
foo
())
11
++
i
;
12
return
i
;
13
}
14
}