Fix functors (wrapped as __call__) when using -builtin -modern -fastunpack.
This commit is contained in:
parent
bf85b6f7a9
commit
c6547ac44e
5 changed files with 57 additions and 1 deletions
|
|
@ -75,3 +75,10 @@ if not -a==a:
|
|||
if not -b==Op(-5):
|
||||
raise RuntimeError("-b==Op(-5)")
|
||||
|
||||
# test functors
|
||||
if not b()==5:
|
||||
raise RuntimeError("functor")
|
||||
if not b(1)==6:
|
||||
raise RuntimeError("functor")
|
||||
if not b(1, 2)==8:
|
||||
raise RuntimeError("functor")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue