a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
363 B
C#
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]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|