diff options
Diffstat (limited to 'mcs/errors/cs0196.cs')
-rwxr-xr-x | mcs/errors/cs0196.cs | 11 |
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) + ; + } +} |