Skip to content

Add test coverage for SzArray constructors#47400

Merged
MichalStrehovsky merged 3 commits intodotnet:masterfrom
MichalStrehovsky:arrctorTests
Jan 26, 2021
Merged

Add test coverage for SzArray constructors#47400
MichalStrehovsky merged 3 commits intodotnet:masterfrom
MichalStrehovsky:arrctorTests

Conversation

@MichalStrehovsky
Copy link
Member

I couldn't find a single occurence of []:: in the test tree, so I assume we don't have any coverage for this.

Arrays are normally allocated with the dedicated newarr IL instruction. The ECMA-335 specification says "All zero-based, one-dimensional arrays are created using newarr, not newobj.". Nevertheless, they do have a constructor and apparently code out there uses it.

Also adding coverage for the constructor that creates a jagged array.

Regression test for dotnet/runtimelab#578.

We should bump this down to Pri-1 before merging, but I want the CI to run on this.

I couldn't find a single occurence of `[]::` in the test tree, so I assume we don't have any coverage for this.

Arrays are normally allocated with the dedicated `newarr` IL instruction. The ECMA-335 specification says "All zero-based, one-dimensional arrays are created using newarr, not newobj.". Nevertheless, they do have a constructor and apparently code out there uses it.

Also adding coverage for the constructor that creates a jagged array.

Regression test for dotnet/runtimelab#578.
@ghost
Copy link

ghost commented Jan 25, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@MichalStrehovsky MichalStrehovsky merged commit 1c0ca4a into dotnet:master Jan 26, 2021
@MichalStrehovsky MichalStrehovsky deleted the arrctorTests branch January 26, 2021 18:43
@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants