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

Function TestDivide

Archive/releases/6/TestCompile.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected