Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Pratap M <ravi@mono-cvs.ximian.com>2002-12-21 10:25:18 +0300
committerRavi Pratap M <ravi@mono-cvs.ximian.com>2002-12-21 10:25:18 +0300
commit5d592bb366bfdb82e78a0975795ab592fbce7fc5 (patch)
tree54ebca6ee97d372f08c5273b078ed110420135ea /mcs/tests/test-171.cs
parent2571837c88d0502a7e04d77fc9ccc9c195512419 (diff)
2002-12-21 Ravi Pratap <ravi@ximain.com>
* test-171.cs : This was mysteriously absent. Add new test in its place. svn path=/trunk/mcs/; revision=9808
Diffstat (limited to 'mcs/tests/test-171.cs')
-rw-r--r--mcs/tests/test-171.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-171.cs b/mcs/tests/test-171.cs
new file mode 100644
index 00000000000..a5be037d9e3
--- /dev/null
+++ b/mcs/tests/test-171.cs
@@ -0,0 +1,23 @@
+using System;
+
+namespace IntPtr_Conv
+{
+ struct FooStruct {
+ int x;
+ }
+
+ class Class1 {
+
+ static int Main(string[] args)
+ {
+ IntPtr[] pArray = new IntPtr[1] {IntPtr.Zero};
+
+ unsafe {
+ FooStruct* s = (FooStruct*) (pArray[0]);
+ }
+
+ return 0;
+ }
+ }
+}
+