MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / main

Function main

tests/module_test/module_include_test.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14import cmodule;
15
16int main() {
17 int a = 1;
18 int b = 2;
19
20 int absum = add(a, b);
21 int abdif = subtract(a, b);
22
23 assert(a + b == absum);
24 assert(a - b == abdif);
25
26 // used this instead of <iostream> to work with older compilers that may choke on <iostream> implicit includes
27 printf("OK: export module\n");
28
29 return EXIT_SUCCESS;
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected