blob: 2aaa809b6fb0681c93cef4c79a21abb5417d7973 (
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
|
// 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.
//
using System;
class Repro
{
static int Main()
{
//We used to incorrectly generate an infinite loop by
//emitting a jump instruction to itself
//The correct behaviour would be to immediately exit the loop
int i = 0;
while (i < 0 || i < 1)
{
i++;
}
Console.WriteLine("PASS!");
return 100;
}
}
|