blob: 4e5c3986212c4e16fb66f86f0a9ced5ff9b69fd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
namespace Test
{
using System;
class BB
{
public static uint m_uStatic3 = 205u;
public static void Static1()
{
try
{
GC.Collect();
}
finally
{
#pragma warning disable 1718
while (m_uStatic3 == m_uStatic3)
#pragma warning restore
{
throw new Exception();
}
}
}
static int Main()
{
try
{
Static1();
}
catch (Exception) { return 100; }
return 1;
}
}
}
|