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

Function TestDivide

Archive/releases/3/TestCompile.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86template <typename T, typename U>
87void TestDivide()
88{
89 SafeInt<T> st(1);
90 T tmp;
91 U u(1);
92 tmp = st / u;
93 SafeInt<T> st2(1);
94 tmp = st / st2;
95 tmp = u / st;
96 st /= u;
97 SafeInt<U> su(1);
98 st = 1;
99 st /= su;
100}
101
102template <typename T, typename U>
103void TestAddition()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected