Fix `replace_function` test on GCC 4.8.x