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

Function f

tests/p1143Test.cpp:4–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2// example taken from the standard
3const char *g() { return "dynamic initialization"; }
4constexpr const char *f(bool p) { return p ? "constant initializer" : g(); }
5
6
7constinit const char *c = f(true); // OK.

Callers 1

p1143Test.cppFile · 0.70

Calls 1

gFunction · 0.70

Tested by

no test coverage detected