Add Python runtime test for const function pointer

This commit is contained in:
William S Fulton 2018-11-13 07:30:04 +00:00
commit c0481ce99d
2 changed files with 4 additions and 0 deletions

View file

@ -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