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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
test-488.cs
blob
b0d59895a25f9624c6a35f5ab8b7a2624939a911
1
using
System
.
Collections
;
2
3
class
P
{
4
public int
x
;
5
}
6
7
struct
Q
{
8
public
P p
;
9
public
Q
(
P p
)
{ this.p = p; }
10
}
11
12
class
Test
{
13
static
IEnumerable
foo
()
{ return null; }
14
15
public static void
Main
()
16
{
17
IEnumerable f
=
foo
();
18
if
(
f
!=
null
)
19
foreach
(
P p
in
f
)
20
p
.
x
=
0
;
21
if
(
f
!=
null
)
22
foreach
(
Q q
in
f
)
23
q
.
p
.
x
=
0
;
24
}
25
}