[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs0162-7.cs
blob3eb8bcfdb3f5adc8a90bff945f19218a319522bc
1 // CS0162: Unreachable code detected
2 // Line: 9
3 // Compiler options: -warnaserror -warn:2
5 class Foo {
6 static void Main ()
8 goto skip;
9 a:
10 goto a;
11 skip:
12 return;