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

Function IntrinsicConstExpr

Test/ConstExpr_Intrinsics.cpp:190–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void IntrinsicConstExpr()
191{
192 // Need to ensure that nothing that calls an intrinsic is marked constexpr, and everything that doesn't call an intrinsic is marked
193 static constexpr std::int16_t test1 = CastInt();
194 static constexpr std::uint16_t test2 = CastUint();
195 static constexpr std::int32_t test3 = CastInt64();
196 static constexpr std::uint32_t test4 = CastUint64();
197 static _CONSTEXPR14_MULTIPLY std::uint64_t test5 = Uint64Uint64();
198 static _CONSTEXPR14_MULTIPLY std::uint64_t test6 = Uint64Uint();
199 static constexpr std::uint32_t test7 = UintUint64();
200 static _CONSTEXPR14_MULTIPLY std::uint64_t test8 = Uint64Int();
201 static _CONSTEXPR14_MULTIPLY std::uint64_t test9 = Uint64Int64();
202 static constexpr std::uint32_t test10 = UintInt64();
203 static _CONSTEXPR14_MULTIPLY std::int64_t test11 = Int64Uint();
204 static _CONSTEXPR14_MULTIPLY std::int64_t test12 = Int64Int64();
205 static _CONSTEXPR14_MULTIPLY std::int64_t test13 = Int64Int();
206 static constexpr std::int32_t test14 = IntUint64();
207 static _CONSTEXPR14_MULTIPLY std::int64_t test15 = Int64Uint64();
208 static _CONSTEXPR14_MULTIPLY std::int32_t test16 = IntInt64();
209}
210
211#else
212void IntrinsicConstExpr(){}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected