Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

29
mcs/tests/test-339.cs Normal file
View File

@@ -0,0 +1,29 @@
// Compiler options: -unsafe
using System;
struct SS
{
}
public class C
{
public static int[] field = new int [] { 66 };
public static int Main()
{
unsafe {
SS* ss = stackalloc SS [10];
SS* s1 = &ss [5];
int* values = stackalloc int[20];
int* p = &values[1];
int* q = &values[15];
Console.WriteLine("p - q = {0}", p - q);
Console.WriteLine("q - p = {0}", q - p);
}
return 0;
}
}