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

Function TestAddition

Archive/releases/3/TestCompile.cpp:103–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected