Skip to content

Fix 'main' return value #289

Open
Open
@tschwinge

Description

@tschwinge

As discussed in https://gcc-rust.zulipchat.com/#narrow/stream/281658-compiler-development/topic/Testsuite/near/230597886:

We're currently synthesizing a void main function (see -fdump-tree-gimple); this should (for now) probably be int main, plus the usual return 0 at the end.
(I'm aware of #144 "Implement main shim" which probably needs to be completed to resolve this properly.)

Fixing this (so that we get deterministic normal process termination) is a prerequisite for #281 "Create runnable test folder".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions