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