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

cs0619-24.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 05a293baccfbcd0c6f3fe9e0200716252571bbcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// cs0619-24.cs: `Obsolete*' is obsolete: `'
// Line: 19
// Compiler options: -unsafe

class Box {
        public Helper o;
}

[System.Obsolete("", true)]
unsafe struct Obsolete {
}

unsafe struct Helper {}

class MainClass {
        unsafe public static void Main ()
        {
                Box b = new Box ();
                fixed (Obsolete* p = &b.o)
                {
                }
        }
}