| 3747 | |
| 3748 | def test_binary_op_refcount_elimination(self): |
| 3749 | class CustomAdder: |
| 3750 | def __init__(self, val): |
| 3751 | self.val = val |
| 3752 | def __add__(self, other): |
| 3753 | return CustomAdder(self.val + other.val) |
| 3754 | |
| 3755 | def testfunc(n): |
| 3756 | a = CustomAdder(1) |