Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-442.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6074e70860f0ecb9424f0e46755aa9e4e3686761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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]);
           }
       }
   }
}