diff --git a/tests/lib/cpp/cxx/testcase.yaml b/tests/lib/cpp/cxx/testcase.yaml index 87386b36aa5d9..615b920eff363 100644 --- a/tests/lib/cpp/cxx/testcase.yaml +++ b/tests/lib/cpp/cxx/testcase.yaml @@ -78,3 +78,14 @@ tests: build_only: true extra_configs: - CONFIG_STD_CPP23=y + # Verify struct _cpu_arch struct _thread_arch are compatible with C++ when + # specific configs are enabled. + cpp.main.empty_struct_size: + build_only: true + integration_platforms: + - qemu_riscv32 + - qemu_riscv64 + extra_configs: + - CONFIG_USERSPACE=n + - CONFIG_SMP=n + - CONFIG_FPU_SHARING=n