Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct a test copy paste
  • Loading branch information
Sergey committed Aug 24, 2021
commit fe65446a893a7eeec4ff86ebe043f14dd20432ab
57 changes: 26 additions & 31 deletions src/tests/JIT/Regression/JitBlue/Runtime_57282/Runtime_57282_2.cs
Original file line number Diff line number Diff line change
@@ -1,78 +1,73 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

// Generated by Fuzzlyn v1.2 on 2021-08-16 12:59:38
// Generated by Fuzzlyn v1.2 on 2021-08-16 12:56:37
// Run on .NET 6.0.0-dev on X64 Windows
// Seed: 9053537220764489964
// Reduced from 104.8 KiB to 0.8 KiB in 00:00:44
// Debug: Outputs 1, 0
// Release: Outputs 1, 1
// Seed: 10782465293682251646
// Reduced from 129.7 KiB to 0.8 KiB in 00:01:40
// Debug: Outputs 0
// Release: Outputs 1
struct S0
{
public short F0;
public short F1;
public ushort F4;
public S0(short f1) : this()
public int F2;
public short F3;
public short F4;
public S0(short f4) : this()
{
F1 = f1;
F4 = f4;
}
}

struct S1
{
public S0 F0;
public int F3;
public S1(S0 f0) : this()
{
F0 = f0;
}
}

struct S2
{
public S1 F1;
public S0 F2;
public S2(S1 f1) : this()
{
F1 = f1;
}
}

struct S3
{
public S2 F0;
public S3(S2 f0) : this()
public S1 F0;
public S3(S1 f0) : this()
{
F0 = f0;
}
}

struct S4
{
public sbyte F4;
public S3 F5;
public S4(S3 f5) : this()
public ushort F3;
public S3 F4;
public S4(S3 f4) : this()
{
F5 = f5;
F4 = f4;
}
}

public class Program
{
static S0[] s_9 = new S0[] { new S0(0) };

public static int Test()
{
S4 vr0 = new S4(new S3(new S2(new S1(new S0(1)))));
System.Console.WriteLine(vr0.F5.F0.F1.F0.F1);
System.Console.WriteLine(vr0.F5.F0.F1.F0.F4);
return vr0.F5.F0.F1.F0.F1 + vr0.F5.F0.F1.F0.F4;
S0 vr4 = default(S0);
S4 vr5 = new S4(new S3(new S1(new S0(1))));
s_9[0].F4 = vr5.F4.F0.F0.F4;
System.Console.WriteLine(vr4.F1);
return vr4.F1;
}

public static int Main()
{
if (Test() == 1)
if (Test() == 0)
{
return 100;
}
return 101;

}

}