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
[bcl] Update BCL Linked Size
[mono-project.git]
/
mcs
/
tests
/
test-195.cs
blob
95ee942562e3e6d4e49ef423bd067c4918a6791d
1
using
System
;
2
3
public class
Y
{
4
static int
count
=
0
;
5
6
public static int
C
()
7
{
8
count
++;
9
if
(
count
==
2
)
10
throw new
Exception
(
"error"
);
11
return
1
;
12
}
13
}
14
15
class
X
{
16
int
a
=
Y
.
C
();
17
18
X
() :
this
(
1
)
19
{
20
}
21
22
X
(
int
a
) {
23
}
24
25
public static void
Main
()
26
{
27
X x
=
new
X
();
28
}
29
}