MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

tests/Basic.Start.Main.P5.4Test.cpp:1–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1int main(int argc, const char* argv[])
2{
3 if(0 == argc) { return 1; }
4
5 int x = []{ return 2; }(); // a return statement in main that does not return from main
6
7 // implicit return 0 added here
8}
9

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected