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

Function for

tests/TestGenericType.cpp:1993–1994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1991auto operator^=(Tuple<@T, @U> ref a, b){ a.x ^= b.x; a.y ^= b.y; return a; }\r\n\
1992\r\n\
1993Tuple<int, int>[11] res;\r\n\
1994for(i in res){ i = Tuple<int, int>(12, 37); } // 1100, 100101\r\n\
1995res[0] += Tuple<int, int>(5, 17); assert(res[0] == Tuple<int, int>(17, 54));\r\n\
1996res[1] -= Tuple<int, int>(5, 17); assert(res[1] == Tuple<int, int>(7, 20));\r\n\
1997res[2] *= Tuple<int, int>(5, 17); assert(res[2] == Tuple<int, int>(60, 17*37));\r\n\

Callers 14

TestForEach.cppFile · 0.85
TestMisc.cppFile · 0.85
RunMethod · 0.85
TestVarargs.cppFile · 0.85
TestMembers.cppFile · 0.85
TestSglList.cppFile · 0.85
TestInference.cppFile · 0.85
TestCoroutine.cppFile · 0.85
TestGeneric.cppFile · 0.85
TestSpeed.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected