There was an error while loading. Please reload this page.
1 parent f92edfe commit 284b376Copy full SHA for 284b376
1 file changed
Lib/test/test_capi/test_fpcast.py
@@ -7,11 +7,15 @@
7
real signature. Calling each variant must work everywhere.
8
"""
9
import unittest
10
-from test.support import import_helper, is_wasm32
+from test.support import check_sanitizer, import_helper, is_wasm32
11
12
_testcapi = import_helper.import_module('_testcapi')
13
14
15
+# Native ABIs tolerate these calls but they are implementation-defined behavior.
16
+# -fsanitize=undefined correctly trips on them.
17
+@unittest.skipIf(check_sanitizer(ub=True),
18
+ "calls through mis-cast function pointers are UB natively")
19
class FpcastTest(unittest.TestCase):
20
def check_calls(self, obj, prefix):
21
for arity in range(4):
0 commit comments