Skip to content

Handle pointers to union #2

@reSHARMA

Description

@reSHARMA

Unions are declared as normal global variables initialized to null values. The test cases like the below are not modeled,

union U {
  int *f;
}u, *v
int main(){
  int a;
  u.f = &a // this works as it uses a GEP
  v -> f = &a // this does not work; fix this
  return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions