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:
authorMiguel de Icaza <miguel@gnome.org>2002-02-21 05:35:01 +0300
committerMiguel de Icaza <miguel@gnome.org>2002-02-21 05:35:01 +0300
commit3cb2123426209e83ed494356f9de3add2802fc2f (patch)
treef3a27c6e728b488f149af7c540109fde4ec85111 /mcs/errors/cs0196.cs
parent40ef50485eacb7f7a62a444cec3e408ce19c5625 (diff)
2002-02-21 Miguel de Icaza <miguel@ximian.com>
* expression.cs (MakeByteBlob): Removed the hacks we had in place before we supported unsafe code. * makefile: add --unsafe to the self compilation of mcs. 2002-02-20 Miguel de Icaza <miguel@ximian.com> * expression.cs (PointerArithmetic): New class that is used to perform pointer arithmetic. (Binary.Resolve): Handle pointer arithmetic Handle pointer comparission. (ArrayPtr): Utility expression class that is used to take the address of an array. (ElementAccess): Implement array access for pointers * statement.cs (Fixed): Implement fixed statement for arrays, we are missing one more case before we are done. svn path=/trunk/mcs/; revision=2553
Diffstat (limited to 'mcs/errors/cs0196.cs')
-rwxr-xr-xmcs/errors/cs0196.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs0196.cs b/mcs/errors/cs0196.cs
new file mode 100755
index 00000000000..edf4e6fd54e
--- /dev/null
+++ b/mcs/errors/cs0196.cs
@@ -0,0 +1,11 @@
+// cs0196.cs: pointers must be indexed by a single value
+// line: 8
+using System;
+unsafe class ZZ {
+ static void Main () {
+ int *p = null;
+
+ if (p [10,4] == 4)
+ ;
+ }
+}