C/C++test will not apply code instrumentation to 'constexpr' functions. As a result, the following limitations will be imposed:

  • Code coverage analysis will not be performed for 'constexpr' functions.
  • Stubs will not be available for 'constexpr' functions or functions called from 'constexpr' functions.
  • Reported stack traces may be incomplete if a 'constexpr' function is on an execution path.
  • Reported Runtime Error Detection violations may be inaccurate if a 'constexpr' function is on an execution path.

The limitations apply also for the following cases:

  • 'constexpr' functions which are used in a 'non-constexpr' context
  • functions which are implicitly treated as 'constexpr', for example, lambda expressions in C++17
  • functions declared with C++20 'consteval' specifier
  • No labels