Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Static/instance field layout tests for non x64 architectures #34

Closed

Description

@MichalStrehovsky

We should refactor the existing static/instance field layout type system tests to be easily extensible to other platform. Currently, the expected offsets are hardcoded to a specific number and the architecture is hardcoded to x64 (aka AMD64 or x86-64).

What we want is probably a data structure that has expected field offsets for each architecture and a driver that iterates over all architectures and for each architecture tests that the computed offsets match the expected values.

I didn't do it initially because the tests are a line-by-line port from the tests for the .NET Native NUTC compiler and we don't support anything but x64 right now anyway.

Activity

  1. added this to the milestone on Dec 14, 2015
  2. removed their assignment
    on Dec 16, 2015
  3. modified the milestones: Future, on Oct 18, 2016
  4. MichalStrehovsky commented on Jan 27, 2017

    @MichalStrehovsky
    MemberAuthor

    We have coverage for platform specific rules in ArchitectureSpecificFieldLayoutTests.cs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions