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
2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
gtest-382.cs
blob
0ae654fa0b0e3ed931acdd8ed07b455ffc25b864
1
using
System
;
2
3
class
C
4
{
5
public static int
Main
()
6
{
7
int
?
i
=
1
;
8
try
{
9
i
=
checked
(
int
.
MaxValue
+
i
);
10
return
1
;
11
}
catch
(
OverflowException
) {
12
return
0
;
13
}
14
}
15
}