Translated #933 test to c++