@parameterized({'fsanitize_undefined': (['-fsanitize=undefined'],), 'fsanitize_null': (['-fsanitize=null'],)})
@no_fastcomp('ubsan not supported on fastcomp')
@no_wasm2js('TODO: sanitizers in wasm2js')
def test_ubsan_full_null_ref(self, args):
    self.emcc_args += args
    self.do_run(open(path_from_root('tests', 'core', 'test_ubsan_full_null_ref.cpp')).read(), assert_all=True, expected_output=["src.cpp:3:12: runtime error: reference binding to null pointer of type 'int'", "src.cpp:4:13: runtime error: reference binding to null pointer of type 'int'", "src.cpp:5:14: runtime error: reference binding to null pointer of type 'int'"])
@parameterized({'fsanitize_undefined': (['-fsanitize=undefined'],), 'fsanitize_null': (['-fsanitize=null'],)})
@no_fastcomp('ubsan not supported on fastcomp')
@no_wasm2js('TODO: sanitizers in wasm2js')
def test_ubsan_full_null_ref(self, args):
    self.emcc_args += args
    self.do_run(open(path_from_root('tests', 'core', 'test_ubsan_full_null_ref.cpp')).read(), assert_all=True, expected_output=["src.cpp:3:12: runtime error: reference binding to null pointer of type 'int'", "src.cpp:4:13: runtime error: reference binding to null pointer of type 'int'", "src.cpp:5:14: runtime error: reference binding to null pointer of type 'int'"])