We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262a609 commit 5f77da3Copy full SHA for 5f77da3
tests/test_class_sh_mi_thunks.py
@@ -53,14 +53,12 @@ def test_get_shared_vec_size_unique():
53
)
54
55
56
-def _delta_nonzero():
57
- a = m.diamond_addrs()
58
- return (a.as_vbase - a.as_self) != 0
+def test_virtual_base_at_offset_0():
+ addrs = m.diamond_addrs()
+ if addrs.as_vbase - addrs.as_self == 0:
59
+ pytest.skip("virtual base at offset 0 on this compiler/layout")
60
61
-@pytest.mark.skipif(
62
- not _delta_nonzero(), reason="virtual base at offset 0 on this compiler/layout"
63
-)
64
def test_shared_ptr_return_to_virtual_base_triggers_vi_path():
65
# This exercised the broken seam pre-fix.
66
vb = m.make_diamond_as_vbase()
0 commit comments