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
[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git]
/
mcs
/
tests
/
gtest-collectioninit-02.cs
blob
b84ee064d3f1360506cdadf4900dbb70c7c95f6f
1
2
3
using
System
.
Collections
.
Generic
;
4
5
public class
C
6
{
7
public static int
Main
()
8
{
9
var
o
=
new
Dictionary
<
string
,
int
>()
{ { "Foo", 3 }
};
10
if
(
o
[
"Foo"
] !=
3
)
11
return
1
;
12
13
o
=
new
Dictionary
<
string
,
int
>()
{ { "A", 1 }
,
{ "B", 2 }
};
14
15
return
0
;
16
}
17
}
18