Add some tests for typedef to member function pointers

This commit is contained in:
William S Fulton 2017-03-06 20:26:04 +00:00
commit 2a5068bcf2
6 changed files with 40 additions and 2 deletions

View file

@ -43,6 +43,9 @@ memberPtr = NULLPT
check("Square area ", 100.0, do_op(s, AREAPT))
check("Square perim", 40.0, do_op(s, PERIMPT))
# Typedefs
check("Square perim", 40.0, do_op_td(s, perim_pt));
check("Add by value", 3, call1(ADD_BY_VALUE, 1, 2))
check("Add by pointer", 7, call2(ADD_BY_POINTER, 3, 4))
check("Add by reference", 11, call3(ADD_BY_REFERENCE, 5, 6))