I am unable to run tests using a main.cpp file.
It seems to build test fine if I use main.c.
Minimal example available at
Just rename src/main.c to src/main.cpp to reproduce the error.
The issue I get is the same I get if the framework Zephyr is not included properly.