aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/void_main.zc
blob: b4fde70f7c5eae24b3434a77e05a85d0117c1381 (plain) (blame)
1
2
3
4
5
6
7
8
namespace;
include rt;

// main may be declared void: the runtime ignores what main returns (docs/SPEC.md 5.2.5, 8.1.3),
// so a run-only image, whose run.zc declares int main();, accepts it as zy does.
void main() {
	rt.put_s("void main"); rt.put_c(10);
}