summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0242.cs
blob: aa3c570aa26cf2c3360181aaa791e5aa11d74acd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0242: The operation in question is undefined on void pointers
// Line: 11
// Compiler options: -unsafe

using System;

unsafe class ZZ {
	static void Main () {
		void *p = null;

		if (p [10] == 4)
			return;
	}
}