When tests are enabled additional C++ code is compiled and clang does not like the code. Cc: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>