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
2009-10-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-112.cs
blob
c1c285479916c7aad2735ef676927f680f8a3a07
1
//
2
// This tests the use of an array indexer on value exprclasses
3
// and not only variables
4
//
5
class
X
{
6
static int
[]
g
()
7
{
8
int
[]
x
=
new int
[
5
];
9
x
[
1
] =
10
;
10
return
x
;
11
}
12
13
static int
Main
()
14
{
15
if
(
g
() [
1
] ==
10
)
16
return
0
;
17
return
1
;
18
}
19
}