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

Function TestMultiply

Archive/releases/5/TestCompile.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66template <typename T, typename U>
67void TestMultiply()
68{
69 SafeInt<T> st(1);
70 T tmp;
71 U u(1);
72 tmp = st * u;
73 SafeInt<T> st2(1);
74 tmp = st * st2;
75 tmp = u * st;
76 st *= u;
77 SafeInt<U> su(1);
78 st = 1;
79 st *= su;
80}
81
82template <typename T, typename U>
83void TestDivide()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected