projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5675 from mono/glib-debug-symbols
[mono.git]
/
mcs
/
tests
/
test-940.cs
1
// Compiler options: -unsafe
2
3
using System;
4
5
struct nint
6
{
7
public static nint operator * (nint a, nint b)
8
{
9
return a;
10
}
11
12
public static implicit operator long (nint v)
13
{
14
return 0;
15
}
16
}
17
18
class X
19
{
20
public static void Main ()
21
{
22
nint width;
23
nint bytesPerRow;
24
25
unsafe {
26
var da = (uint*)0;
27
var dp1 = da + width * bytesPerRow;
28
var dp2 = width * bytesPerRow + da;
29
}
30
}
31
}