repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add failing test for bnc550722
[mcs.git]
/
tests
/
gtest-062.cs
blob
2822e169f93ed0068837ed7253a17492a97927e7
1
using
System
.
Collections
.
Generic
;
2
3
class
X
4
{
5
public
IEnumerable
<
int
>
Test
(
int
a
,
long
b
)
6
{
7
while
(
a
<
b
) {
8
a
++;
9
yield return
a
;
10
}
11
}
12
13
static int
Main
()
14
{
15
X x
=
new
X
();
16
int
sum
=
0
;
17
foreach
(
int
i
in
x
.
Test
(
3
,
8L
))
18
sum
+=
i
;
19
20
return
sum
==
30
?
0
:
1
;
21
}
22
}