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

test-456.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 17d4d1b6f3288646ce7dc515175baef0f91f02ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Compiler options: -unsafe

struct Foo {
	public float f;
	public void foo ()
	{
		unsafe {
			fixed (float *pf2 = &f) {
			}
		}
	}
}

class Test {
	public static void Main ()
	{
		Foo x = new Foo ();
		x.foo ();
	}
}