MCPcopy Create free account
hub / github.com/WheretIB/nullc / ff

Function ff

tests/TestClosures.cpp:205–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203{\r\n\
204int ff(int ref() f){ return f(); }\r\n\
205a = 1 + ff(int f1(){ return 1 + ff(int f2(){ return 1; }); });\r\n\
206}\r\n\
207int ff(int ref() f){ return f(); }\r\n\
208int b = 1 + ff(int f1(){ return 1 + ff(int f2(){ return 1 + ff(int f3(){ return 1; }); }); });\r\n\
209return a+b;";
210TEST_RESULT("Closure test 4", testClosure4, "7");

Callers 2

TestClosures.cppFile · 0.85
TestExtra.cppFile · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected