Add Python runtime test for const function pointer
This commit is contained in:
parent
ebce018542
commit
c0481ce99d
2 changed files with 4 additions and 0 deletions
|
|
@ -8,3 +8,6 @@ if call3(ADD_BY_REFERENCE, 14, 15) != 29:
|
|||
raise RuntimeError
|
||||
if call1(ADD_BY_VALUE_C, 2, 3) != 5:
|
||||
raise RuntimeError
|
||||
|
||||
if callconst1(ADD_BY_VALUE_C, 2, 3) != 5:
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue