add new cpp loop test code.