2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / tests / test-171.cs
index a5be037d9e3e39a4d0aa66d83e63b548551e4f08..2aaee4b8a253dac775e3b91b61a8927048d6af54 100644 (file)
@@ -1,3 +1,8 @@
+//\r
+// Checks for an implicit void * conversion during an\r
+// explicit conversion\r
+//\r
+\r
 using System;\r
 \r
 namespace IntPtr_Conv\r
@@ -10,10 +15,10 @@ namespace IntPtr_Conv
                \r
                static int Main(string[] args)\r
                {\r
-                       IntPtr[] pArray = new IntPtr[1] {IntPtr.Zero};\r
+                       IntPtr p = IntPtr.Zero;\r
 \r
                        unsafe {\r
-                               FooStruct* s = (FooStruct*) (pArray[0]);\r
+                               FooStruct* s = (FooStruct*) (p);\r
                        }\r
 \r
                        return 0;\r