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

Function TestSubtract

Archive/releases/4/TestCompile.cpp:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114template <typename T, typename U>
115void TestSubtract()
116{
117 SafeInt<T> st(1);
118 T tmp;
119 U u(1);
120 tmp = st - u;
121 SafeInt<T> st2(1);
122 tmp = st - st2;
123 tmp = u - st;
124 st -= u;
125 SafeInt<U> su(1);
126 st = 1;
127 st -= su;
128}
129
130template <typename T, typename U>
131void TestCompare()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected