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

Function TestMultiply

Archive/releases/3/TestCompile.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected