projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mono
/
tests
/
finalize-parent.cs
1
using System;
2
3
class P {
4
5
static public int count = 0;
6
~P () {
7
count++;
8
}
9
}
10
11
class T : P {
12
13
static int Main () {
14
for (int i = 0; i < 100; ++i) {
15
T t = new T ();
16
}
17
GC.Collect ();
18
GC.WaitForPendingFinalizers ();
19
Console.WriteLine (P.count);
20
if (P.count > 0)
21
return 0;
22
return 1;
23
}
24
}