diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-02-21 05:35:01 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-02-21 05:35:01 +0300 |
commit | 3cb2123426209e83ed494356f9de3add2802fc2f (patch) | |
tree | f3a27c6e728b488f149af7c540109fde4ec85111 /mcs/errors/cs0242.cs | |
parent | 40ef50485eacb7f7a62a444cec3e408ce19c5625 (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/cs0242.cs')
-rwxr-xr-x | mcs/errors/cs0242.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs0242.cs b/mcs/errors/cs0242.cs new file mode 100755 index 00000000000..2a927d86b6e --- /dev/null +++ b/mcs/errors/cs0242.cs @@ -0,0 +1,11 @@ +// cs0242: operation is not defined for void * +// Line: 8 +using System; +unsafe class ZZ { + static void Main () { + void *p = null; + + if (p [10] == 4) + ; + } +} |