repo.or.cz
/
mono.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git]
/
mono
/
tests
/
test-type-ctor.cs
blob
23d6a67cc8fcf3d4125eb09780f5bdd48e25393b
1
using
System
;
2
3
class
Subclient
{
4
5
static
Subclient
() {
6
throw new
Exception
();
7
}
8
~
Subclient
() {
9
Console
.
WriteLine
(
"in finalizer"
);
10
}
11
}
12
13
class
Test
{
14
static
Subclient s
;
15
static void
Main
() {
16
Console
.
WriteLine
(
"testing"
);
17
try
{
18
s
=
new
Subclient
();
19
}
catch
{
20
Console
.
WriteLine
(
"got it"
);
21
}
22
Console
.
WriteLine
(
"done"
);
23
}
24
}
25