[LLVMbugs] [Bug 288] NEW: Last result from main() not used as exit status

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 12 08:29:36 PST 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=288

           Summary: Last result from main() not used as exit status
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: criswell at uiuc.edu


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();
}



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list