tests: Add base test for C++ exceptions handling.

Try to throw and catch C++ exception of int type.

Related to: #32448 and #34229


Signed-off-by: Artur Lipowski <Artur.Lipowski@hidglobal.com>
2 files changed