projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* verify.c: Fixed pointer type handling, some code and message formating and two...
[mono.git]
/
mono
/
tests
/
stack-overflow.cs
1
using System;
2
3
public class Tests {
4
5
struct A1 {
6
long a1, a2, a3, a4;
7
}
8
9
struct A2 {
10
A1 a1, a2, a3, a4;
11
}
12
13
struct A3 {
14
A2 a1, a2, a3, a4;
15
}
16
17
struct A4 {
18
A3 a1, a2, a3, a4;
19
}
20
21
struct A5 {
22
A4 a1, a2, a3, a4;
23
}
24
25
public static int foo () {
26
A5 a5;
27
28
return foo () + 1;
29
}
30
31
public static int Main () {
32
try {
33
foo ();
34
}
35
catch (StackOverflowException) {
36
Console.WriteLine ("Stack overflow caught.");
37
return 0;
38
}
39
return 1;
40
}
41
}