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

Function testVarDeclAndConditional

tests/EduCoroutineExprTest.cpp:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83int Funa(int);
84
85task<int> testVarDeclAndConditional()
86{
87 task<int> v = get_random();
88 task<int> u = get_random();
89
90 int xres = (co_await v + co_await u);
91
92 auto t = co_await v ? co_await v+1 : co_await v+2;
93
94 co_return xres + co_await v;
95}
96task<int> testIfStmt()
97{
98 task<int> v = get_random();

Callers

nothing calls this directly

Calls 1

get_randomFunction · 0.70

Tested by

no test coverage detected