projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git]
/
mcs
/
tests
/
gtest-named-03.cs
1
using System;
2
3
public class C
4
{
5
static int Foo (int a, int b = 1, int c = 1)
6
{
7
return a;
8
}
9
10
int v;
11
int this [int a, int b = 1, int c = 2] {
12
set {
13
v = a * 500 + b * 50 + c;
14
}
15
get {
16
return v;
17
}
18
}
19
20
public static int Main ()
21
{
22
if (Foo (c: 5, a: 10) != 10)
23
return 1;
24
25
if (Foo (a: 10) != 10)
26
return 2;
27
28
C c = new C ();
29
c [a : 1, c : 2, b : 3] = 1;
30
var res = c [1];
31
if (res != 652)
32
return 3;
33
34
return 0;
35
}
36
}