Skip to content

Fix test_ubsan_full_static_cast after recent llvm change. NFC #23811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8741,15 +8741,11 @@ def test_ubsan_full_null_ref(self, args):
".cpp:5:14: runtime error: reference binding to null pointer of type 'int'",
])

@parameterized({
'fsanitize_undefined': (['-fsanitize=undefined'],),
'fsanitize_vptr': (['-fsanitize=vptr'],),
})
@no_wasm2js('TODO: sanitizers in wasm2js')
def test_ubsan_full_static_cast(self, args):
self.emcc_args += args
def test_sanitize_vptr(self):
self.do_runf(
'core/test_ubsan_full_static_cast.cpp',
'core/test_sanitize_vptr.cpp',
emcc_args=['-fsanitize=vptr'],
assert_all=True,
expected_output=[
".cpp:18:10: runtime error: downcast of address",
Expand Down