[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0162-100.cs
blob313f0f6f8f637062265a92774bca2c9c8d411488
1 // CS0162: Unreachable code detected
2 // Line: 18
3 // Compiler options: -warnaserror -warn:2
5 using System;
7 class X
9 public static int Main ()
11 try {
12 throw new ApplicationException ();
13 } catch when (false) {
14 return 0;