projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make exvar_offset signed
[mono.git]
/
mono
/
tests
/
pointer.cs
1
using System;
2
3
public class Test {
4
5
public static IntPtr to_intptr (int value)
6
{
7
return new IntPtr (value);
8
}
9
10
unsafe public static int Main () {
11
int num = 0;
12
13
num++;
14
IntPtr a = to_intptr (1);
15
if ((int)a != 1)
16
return num;
17
18
num++;
19
if (sizeof (void*) != 4)
20
return num;
21
22
num++;
23
if (sizeof (byte*) != 4)
24
return num;
25
26
num++;
27
if (sizeof (int*) != 4)
28
return num;
29
30
return 0;
31
}
32
}
33