cpp extension of d_do_test.d (need for #2074)