Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

18 lines
363 B
C#

// Compiler options: -unsafe
using System;
namespace ConsoleApplication1 {
class Program {
unsafe public static void Main(string[] args) {
int[] i = new int[] { 10 };
fixed (int* p = i) {
int*[] q = new int*[] { p };
*q[0] = 5;
Console.WriteLine(*q[0]);
}
}
}
}