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
path: root/mcs
diff options
context:
space:
mode:
authorBen Maurer <benm@mono-cvs.ximian.com>2004-09-06 23:55:05 +0400
committerBen Maurer <benm@mono-cvs.ximian.com>2004-09-06 23:55:05 +0400
commita8ff721d69504d8ecab476b2add20bd9d3b6ec62 (patch)
tree5ad0b46137f35885dfbe309f78c28a94511911cf /mcs
parenta4a2953edf3edd804d389b333690595335c08a22 (diff)
2004-09-06 Ben Maurer <bmaurer@users.sourceforge.net>
* unsafe-10.cs: new test svn path=/trunk/mcs/; revision=33441
Diffstat (limited to 'mcs')
-rwxr-xr-xmcs/tests/ChangeLog4
-rw-r--r--mcs/tests/Makefile2
-rw-r--r--mcs/tests/unsafe-10.cs11
3 files changed, 16 insertions, 1 deletions
diff --git a/mcs/tests/ChangeLog b/mcs/tests/ChangeLog
index 1f182b4fb31..f2f4991bef6 100755
--- a/mcs/tests/ChangeLog
+++ b/mcs/tests/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-06 Ben Maurer <bmaurer@users.sourceforge.net>
+
+ * unsafe-10.cs: new test
+
2004-09-06 Martin Baulig <martin@ximian.com>
* Makefile: Enable gen-65.cs (bug #58306).
diff --git a/mcs/tests/Makefile b/mcs/tests/Makefile
index 3457ea44a66..b60c5636e8e 100644
--- a/mcs/tests/Makefile
+++ b/mcs/tests/Makefile
@@ -70,7 +70,7 @@ TEST2_SOURCES = \
2test-11 2test-12 2test-13 2test-14
UNSAFE_SOURCES = \
- unsafe-1 unsafe-2 unsafe-3 test-58 test-171 unsafe-5 unsafe-6 unsafe-7 unsafe-8 unsafe-9
+ unsafe-1 unsafe-2 unsafe-3 test-58 test-171 unsafe-5 unsafe-6 unsafe-7 unsafe-8 unsafe-9 unsafe-10
WINDOWS_SOURCES = \
test-50 test-67
diff --git a/mcs/tests/unsafe-10.cs b/mcs/tests/unsafe-10.cs
new file mode 100644
index 00000000000..f5e1fb28678
--- /dev/null
+++ b/mcs/tests/unsafe-10.cs
@@ -0,0 +1,11 @@
+using System;
+
+unsafe class X {
+ static int Main () {
+ int y = 20;
+ byte* x = (byte*)0;
+ x += (long)y;
+ // x == 20;
+ return (int)x - 20 * sizeof (byte);
+ }
+} \ No newline at end of file