2010-02-13 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-171.cs
blob21fc85915a4cf5b00530e4d15f1238aa6f00ac64
1 // Compiler options: -unsafe
3 //
4 // Checks for an implicit void * conversion during an
5 // explicit conversion
6 //
8 using System;
10 namespace IntPtr_Conv
12 struct FooStruct {
13 int x;
16 class Class1 {
18 static int Main(string[] args)
20 IntPtr p = IntPtr.Zero;
22 unsafe {
23 FooStruct* s = (FooStruct*) (p);
26 return 0;