Commit Graph
5 Commits
Author SHA1 Message Date
akkadbakkad89 a361119ae1 test(libc): use production exception types in GuestBadOptionalAccess
Include the canonical libc Api.hpp (which also provides the
exceptions/Runtime.hpp cxa declarations) instead of test-local export
declarations: the bad_optional_access ctor/dtor take
LibcException::ExceptionObject*, __cxa_throw takes std::type_info*, and
__cxa_current_exception_type returns std::type_info*. The exported
records are declared as std::type_info / __cxxabiv1::__si_class_type_info
matching their TypeRecord/FundamentalTypeRecord layout, and the
catch-type callback uses the production
bool(const std::type_info*, const std::type_info*, void**, unsigned)
signature from TypeInfo.cpp.
2026-11-01 15:35:33 +05:30
akkadbakkad89 ad55ceb9a4 test(libc): exercise fundamental typeinfo records through the guest catch path 2026-11-01 10:56:25 +05:30
akkadbakkad89andDevin b9343e5301 test(libc): exercise exported fundamental typeinfo records directly
Cover the new _ZTI records the way a guest catch would: the vtable
address point, the fundamental-type kind reachable through vtable[-1],
__do_catch matching and non-matching pairs, and a throw of int through
__cxa_throw that a host catch resolves back to _ZTIi.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-01 10:56:23 +05:30
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
Nithishvelan M e775e456d8 fix(libc): add bad_optional_access exports, test, and clarify debt 2026-10-19 21:20:02 +05:30