Closed
Description
// 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.
//
// This file is auto-generated.
// Seed: -1
//
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class TestClass20045 {
public struct S2 {
public ulong uint64_1;
}
public struct S3 {
}
public struct S4 {
public ulong uint64_2;
public S2 s2_4;
}
public struct S5 {
}
static bool s_boolean_0 = true;
static S2 s_s2_16 = new S2();
static S3 s_s3_17 = new S3();
public S3 Method1(out S5 p_s5_0, ref S2 p_s2_1) {
unchecked {
S4 s4_4 = new S4();
do {
try {
try {
try {
s4_4.uint64_2 = s4_4.s2_4.uint64_1;
{
}
} catch (TypeAccessException) {
} finally {
}
} catch (RankException) {
} catch (NotImplementedException) {
} finally {
}
} catch (InvalidCastException) {
} finally {
}
}
while (15 > 4 || (s_boolean_0 = 15 <= 4));
return s_s3_17;
}
}
public void Method0() {
unchecked {
S5 s5_3 = new S5();
s_s3_17 = Method1(out s5_3, ref s_s2_16);
return;
}
}
public static void Main(string[] args) {
TestClass20045 objTestClass20045 = new TestClass20045();
objTestClass20045.Method0();
}
}
/*
Got output diff:
--------- Baseline ---------
Environment:
--------- Test ---------
Environment:
Assert failure(PID 12228 [0x00002fc4], Thread: 7360 [0x1cc0]): Assertion failed '!nodeInfo.IsLclVarWrite() || !unusedLclVarReads.Contains(nodeInfo.LclNum())' in 'TestClass20045:Method1(byref,byref):S3:this' during 'Lowering nodeinfo' (IL size 45)
File: D:\git\runtime\src\coreclr\jit\lir.cpp Line: 1369
Image: D:\git\runtime\artifacts\tests\coreclr\windows.x86.Checked\tests\Core_Root\CoreRun.exe
*/