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

Function f1

tests/TestGeneric.cpp:1284–1286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282"auto average(generic ref(int, generic, int) f)\r\n\
1283{\r\n\
1284 return f(8, 2.5, 3);\r\n\
1285}\r\n\
1286auto f1(int x, y, z){ return x * y + z; }\r\n\
1287auto f2(int x, float y, int z){ return x * y + z; }\r\n\
1288return average(f1) + int(average(f2));";
1289TEST_RESULT("specialization for function pointer 2", testGeneric95, "42");

Callers 2

TestClosures.cppFile · 0.85
TestInference.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected