Skip to content

PCC compiled main() not returning zero when no return statement is given #34

Description

@fuhsnn
#include <stdio.h>

int main(void) {
  printf("hello\n");
} // program expected to exit with 0, got 6 instead (printf's return val?)

This is required since (I think) C99.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions