Skip to content
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