[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-948.cs
blob563e37dc7d5cebbaf6b5e2a3d237643dcc26045b
1 // Compiler options: -langversion:7.2 /unsafe
3 using System;
5 class X
7 public static void Main ()
9 Span<int> stackSpan = stackalloc int[100];
11 bool b = false;
13 var r1 = !b ? stackalloc char[1] : throw null;
14 var r2 = b ? throw null : stackalloc char[1];
15 var r3 = b ? stackalloc char[1] : stackalloc char[2];
18 // Disables verifier
19 unsafe void Foo ()