projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git]
/
mcs
/
tests
/
test-654.cs
1
// Compiler options: -unsafe
2
3
using System;
4
5
class Program
6
{
7
static unsafe public int Main ()
8
{
9
return Test ((sbyte*) (-1));
10
}
11
12
static unsafe int Test (sbyte* x)
13
{
14
if ((x + 1) < x) {
15
Console.WriteLine ("OK");
16
return 0;
17
} else {
18
Console.WriteLine ("BAD");
19
return 1;
20
}
21
}
22
}
23