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

Function foo

tests/TestNew.cpp:27–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25const char *testConstructorAfterNew =
26"void int:int(int x, y){ *this = x; }\r\n\
27int ref a = new int(5, 0);\r\n\
28int foo(int ref x){ return *x; }\r\n\
29return *a + foo(new int(30, 0));";
30TEST_RESULT("Type constructor after new.", testConstructorAfterNew, "35");
31

Callers 15

TestFunctions.cppFile · 0.70
TestModules.cppFile · 0.70
TestVarargs.cppFile · 0.70
TestLocalClass.cppFile · 0.70
TestInference.cppFile · 0.70
TestExtra.cppFile · 0.70
TestAutoRef.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected