MCPcopy Create free account
hub / github.com/dcleblanc/SafeInt / TestModulus

Function TestModulus

Archive/releases/6/TestCompile.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50template <typename T, typename U>
51void TestModulus()
52{
53 SafeInt<T> st(1);
54 T tmp;
55 U u(1);
56 tmp = st % u;
57 SafeInt<T> st2(1);
58 tmp = st % st2;
59 tmp = u % st;
60 st %= u;
61 SafeInt<U> su(1);
62 st = 1;
63 st %= su;
64}
65
66template <typename T, typename U>
67void TestMultiply()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected