Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / errors / cs1944-6.cs
1 // CS1944: An expression tree cannot contain an unsafe pointer operation
2 // Line: 14
3 // Compiler options: -unsafe
4
5 using System;
6 using System.Linq.Expressions;
7
8 class C
9 {
10         unsafe delegate byte* D (int*[] d);
11         public static void Main ()
12         {
13                 unsafe {
14                         Expression<D> e6 = (p) => (byte*)p [10];
15                 }
16         }
17 }