testStat function pointer definition in header that Rcpp attributes will auto-include