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

Function TestModulus

Archive/releases/3/TestCompile.cpp:55–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected