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

Function main

tests/StaticInLambdaTest.cpp:50–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50int main()
51{
52 auto x = [](bool c) {
53 static Bingleton bb;
54
55 if( c ) { return bb; }
56
57 return bb;
58
59 };
60
61
62 auto y = [](bool c) {
63 static Bingleton bb;
64
65 if( c ) { return &bb; }
66
67 return &bb;
68
69 };
70}
71#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected