In class/Microsoft.Build.Tasks:
[mcs.git] / tests / test-405.cs
blob926a7fdf7e613363c56122d219e6845c77df08da
1 // Compiler options: -unsafe
3 using System;
5 namespace testapp{
6 public unsafe class LibTestAPI{
8 struct LibTestStruct{
9 void* pData;
10 void* pTest1;
13 LibTestStruct* the_struct;
15 public void Create(){
16 IntPtr MyPtr = new IntPtr(0); // Usually created elsewhere
17 the_struct = (LibTestStruct *) 0; // error CS1002
21 class TestApp{
22 static void Main(string[] args){
23 LibTestAPI myapi = new LibTestAPI();
24 myapi.Create();