Skip to content

0312_0000.f90 expects automatic variables to be adjacent in memory #13

Open
@ashermancinelli

Description

@ashermancinelli

This test uses LOC() to check that stack variables are 32/64b away from each other - but is this code portable? I don't believe it's portable to depend on the address of a variable in memory or it's relationship to other objects' addresses in memory, and I believe the compiler can move these variables around in memory as it sees fit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions