* NUnit2ified makefile.gnu, Test/dslib_linux_test.args
[mono.git] / mcs / tests / unsafe-5.cs
1 using System;
2
3 namespace testapp{
4         public unsafe class LibTestAPI{
5
6                 struct LibTestStruct{
7                         void* pData;
8                         void* pTest1;
9                 }
10
11                 LibTestStruct* the_struct;
12
13                 public void Create(){
14                         IntPtr MyPtr = new IntPtr(0); // Usually created elsewhere
15                         the_struct = (LibTestStruct *) 0;  // error CS1002
16                 }
17         }
18
19         class TestApp{
20                 static void Main(string[] args){
21                         LibTestAPI myapi = new LibTestAPI();
22                         myapi.Create();
23                 }
24         }
25 }
26