Skip to content

Last result from main() not used as exit status #660

@llvmbot

Description

@llvmbot
Bugzilla Link 288
Resolution INVALID
Resolved on Feb 22, 2010 12:50
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

With native GCC, the exit status of the below code snippet is 5. In LLVM, the
exit status of the below code snippet is 0.

This may not be standard C (i.e. it may be a GCC-ism), but screen 4.0.2 checks
for this behavior and refuses to configure without it. So, it may be worth
duplicating.

int
func1 ()
{
return 5;
}

int
main ()
{
func1();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions