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
2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-195.cs
blob
ec8c963c331c38fba200134bf8573c7853d0fd5d
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
static void
Main
()
26
{
27
X x
=
new
X
();
28
}
29
}