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

Function TestAddition

Archive/releases/4/TestCompile.cpp:99–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98template <typename T, typename U>
99void TestAddition()
100{
101 SafeInt<T> st(1);
102 T tmp;
103 U u(1);
104 tmp = st + u;
105 SafeInt<T> st2(1);
106 tmp = st + st2;
107 tmp = u + st;
108 st += u;
109 SafeInt<U> su(1);
110 st = 1;
111 st += su;
112}
113
114template <typename T, typename U>
115void TestSubtract()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected