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

Function Foo

tests/TestAccessors.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34{\r\n\
35 int _x;\r\n\
36 int x{ get { return _x; } set{ _x = r / 2; } };\r\n\
37}\r\n\
38void Foo:Foo(){ x = 4; }\r\n\
39Foo a;\r\n\
40return a.x;";
41TEST_RESULT("Accessor access inside a member function", testAccessorAccessInsideAMemberFunction, "2");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected