projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-12-06 Zoltan Varga <vargaz@freemail.hu>
[mono.git]
/
mcs
/
tests
/
test-63.cs
1
//
2
// Tests rethrowing an exception
3
//
4
using System;
5
6
class X {
7
static int Main ()
8
{
9
bool one = false, two = false;
10
11
try {
12
try {
13
throw new Exception ();
14
} catch (Exception e) {
15
one = true;
16
Console.WriteLine ("Caught");
17
throw;
18
}
19
} catch {
20
two = true;
21
Console.WriteLine ("Again");
22
}
23
24
if (one && two){
25
Console.WriteLine ("Ok");
26
return 0;
27
} else
28
Console.WriteLine ("Failed");
29
return 1;
30
}
31
}