Skip to content

flow conditional operator #440

Description

@thradams

I believe the following code is not producing the expected result or diagnostics.

#pragma safety enable
int * _Opt f();
int main() {
int i = 0;
   int * _Opt p = f();
   int *p2;
   p2 = p ? p : &i;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions