summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1944-5.cs
blob: b53a1baeca5c4ecaadc5bcbc1a42a7d1433529c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS1944: An expression tree cannot contain an unsafe pointer operation
// Line: 13
// Compiler options: -unsafe

using System;
using System.Linq.Expressions;

class C
{
	public static void Main ()
	{
		unsafe {
			Expression<Func<int>> e = () => sizeof (long*);
		}
	}
}